diff options
author | Gerald Carter <jerry@samba.org> | 2003-07-16 04:26:13 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-07-16 04:26:13 +0000 |
commit | 1acf0a8103c580c8ba7d5a610d37192703d85dcd (patch) | |
tree | 8a78acf35b9a65c43d07f36d4bf81e85510b9834 /source/libads/ldap_printer.c | |
parent | 1b63020c43a9d53407550a6cf5bde61776ebaf9c (diff) | |
download | samba-1acf0a8103c580c8ba7d5a610d37192703d85dcd.tar.gz |
starting to sync up for beta3
Diffstat (limited to 'source/libads/ldap_printer.c')
-rw-r--r-- | source/libads/ldap_printer.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source/libads/ldap_printer.c b/source/libads/ldap_printer.c index aa5ac15b5dd..b650a5eb38b 100644 --- a/source/libads/ldap_printer.c +++ b/source/libads/ldap_printer.c @@ -53,6 +53,20 @@ ADS_STATUS ads_find_printer_on_server(ADS_STRUCT *ads, void **res, return status; } +ADS_STATUS ads_find_printers(ADS_STRUCT *ads, void **res) +{ + char *ldap_expr; + const char *attrs[] = { "objectClass", "printerName", "location", "driverName", + "serverName", "description", NULL }; + + /* For the moment only display all printers */ + + ldap_expr = "(&(!(showInAdvancedViewOnly=TRUE))(uncName=*)" + "(objectCategory=printQueue))"; + + return ads_search(ads, res, ldap_expr, attrs); +} + /* modify a printer entry in the directory */ @@ -338,4 +352,3 @@ BOOL get_local_printer_publishing_data(TALLOC_CTX *mem_ctx, } #endif - |