summaryrefslogtreecommitdiffstats
path: root/source/libads/ldap_printer.c
Commit message (Collapse)AuthorAgeFilesLines
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-7/+7
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r9739: conver the reg_objects (REGSUBKEY_CTR & REGVAL_CTR) to useGerald Carter2007-10-101-17/+24
| | | | | | | | | | | | | | | | the new talloc() features: Note that the REGSUB_CTR and REGVAL_CTR objects *must* be talloc()'d since the methods use the object pointer as the talloc context for internal private data. There is no longer a regXXX_ctr_intit() and regXXX_ctr_destroy() pair of functions. Simply TALLOC_ZERO_P() and TALLOC_FREE() the object. Also had to convert the printer_info_2->NT_PRINTER_DATA field to be talloc()'d as well. This is just a stop on the road to cleaning up the printer memory management.
* r8899: various compiler warning fixes reported by Jason Mader ↵Gerald Carter2007-10-101-2/+2
| | | | <jason@ncac.gwu.edu>
* r8675: fix some compile warnings.Günther Deschner2007-10-101-1/+1
| | | | Guenther
* r8654: merging cli_spoolss_XX() updates from trunkGerald Carter2007-10-101-18/+3
|
* r7139: trying to reduce the number of diffs between trunk and 3.0; changing ↵Gerald Carter2007-10-101-4/+2
| | | | version to 3.0.20pre1
* r6149: Fixes bugs #2498 and 2484.Derrell Lipman2007-10-101-2/+4
| | | | | | | | | | | | | | | | | | 1. using smbc_getxattr() et al, one may now request all access control entities in the ACL without getting all other NT attributes. 2. added the ability to exclude specified attributes from the result set provided by smbc_getxattr() et al, when requesting all attributes, all NT attributes, or all DOS attributes. 3. eliminated all compiler warnings, including when --enable-developer compiler flags are in use. removed -Wcast-qual flag from list, as that is specifically to force warnings in the case of casting away qualifiers. Note: In the process of eliminating compiler warnings, a few nasties were discovered. In the file libads/sasl.c, PRIVATE kerberos interfaces are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED kerberos interfaces are being used. Someone who knows kerberos should look at these and determine if there is an alternate method of accomplishing the task.
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-3/+2
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r2569: Patch from Rob Foehl <rwf@loonybin.net>:Gerald Carter2007-10-101-1/+1
| | | | | | | | | | | | | | | | | - fix typo in libads/ldap_printer.c:39, ads_find_printer_on_server() (originally libads-typo.patch) - fix leak in printing/nt_printing.c, is_printer_published() (originally is_printer_published-leak.patch) - fix double print_backend_init() calls, now only called from main() - restructuring in printing/nt_printing.c - replaced (un)publish_it() with ads-specific functions - moved common code to nt_printer_publish() - improved error handling in several places - added check_published_printers() in printing/nt_printing.c, to verify that each published printer is actually in the directory at startup - changed calling semantics of mod_a_printer, dump_a_printer, and update_driver_init to be more consistent with the rest of the api and reduce some copying
* Update my copyrights according to my agreement with IBMJim McDonough2003-08-011-1/+1
|
* Implemented 'net ads printer search' which searches the directory forTim Potter2003-07-031-1/+14
| | | | | | | | | published printers. At the moment we don't search using any parameters but this can be fixed by changing the LDAP search string. Also we should contact the global catalog at SRV _gc._tcp instead of the ldap server we get back from ads_startup().
* Fix shadow variable warning.Tim Potter2003-06-131-4/+4
|
* Merge minor library fixes from HEAD to 3.0.Andrew Bartlett2003-02-191-5/+3
| | | | | | | | | | | | | | - setenv() replacement - mimir's ASN1/SPNEGO typo fixes - (size_t)-1 fixes for push_* returns - function argument signed/unsigned correction - ASN1 error handling (ensure we don't use initiailsed data) - extra net ads join error checking - allow 'set security discriptor' to fail - escape ldap strings in libads. - getgrouplist() correctness fixes (include primary gid) Andrew Bartlett
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-3/+3
| | | | | | warnings. (Adds a lot of const). Andrew Bartlett
* More printer data to publishJim McDonough2002-12-051-0/+1
|
* Stop using hardcoded key/value strings, be more forgiving of ↵Jim McDonough2002-12-031-70/+74
| | | | dsspooler/dsdriver info existence.
* Don't pass a function to ADS_ERR_OK().Jim McDonough2002-11-181-6/+13
|
* Next step of printer publishing.Jim McDonough2002-11-181-106/+242
| | | | | | | | net ads printer publish <printername> [servername] Will retreive the DsSpooler and DsDriver info by rpc for a remote server then publish it. Next comes doing it within smbd
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-121-5/+4
| | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy.
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-1/+1
|
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-37/+36
|
* talloc'ify ads modify functions.Jim McDonough2002-02-121-35/+51
|
* Update for new ads modlist structure passingJim McDonough2002-02-111-5/+14
|
* Update for function name changes, plus do some of the optional attributes on ↵Jim McDonough2002-02-021-6/+17
| | | | printer modify, now that the ldap control is working.
* Minor bug fixes, plus support to remove a printer. Commented out optional ↵Jim McDonough2002-02-021-5/+35
| | | | attributes until a method for checking for their existence is done.
* Fix build errors on non-ldap systems...change function parms from LDAPMod ** ↵Jim McDonough2002-02-011-1/+1
| | | | to void **
* Fix file header description and copyright (from cut-and-paste laziness)Jim McDonough2002-02-011-3/+1
|
* Module for ADS operations on a printer object in the directory. Initially ↵Jim McDonough2002-02-011-0/+133
it creates and modifies a printQueue object in the directory