svn commit: samba r5802 - in trunk/source/passdb: .
gd at samba.org
gd at samba.org
Tue Mar 15 17:26:22 GMT 2005
Author: gd
Date: 2005-03-15 17:26:21 +0000 (Tue, 15 Mar 2005)
New Revision: 5802
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5802
Log:
Remove needless search_attrs.
Guenther
Modified:
trunk/source/passdb/pdb_ldap.c
Changeset:
Modified: trunk/source/passdb/pdb_ldap.c
===================================================================
--- trunk/source/passdb/pdb_ldap.c 2005-03-15 16:32:15 UTC (rev 5801)
+++ trunk/source/passdb/pdb_ldap.c 2005-03-15 17:26:21 UTC (rev 5802)
@@ -195,7 +195,6 @@
fstring tok;
const char *p;
const char **attrs;
- const char **search_attrs;
/* Unfortunatly there is no proper way to detect syncrepl-support in
* smbldap_connect_system(). The syncrepl OIDs are submitted for publication
@@ -247,13 +246,8 @@
}
- if (!(str_list_copy(&search_attrs, attrs))) {
- ntstatus = NT_STATUS_NO_MEMORY;
- goto done;
- }
-
rc = smbldap_search(ldap_state->smbldap_state, suffix,
- LDAP_SCOPE_BASE, "(objectclass=*)", search_attrs, 0, &msg);
+ LDAP_SCOPE_BASE, "(objectclass=*)", attrs, 0, &msg);
if (rc != LDAP_SUCCESS) {
@@ -320,7 +314,6 @@
ldap_msgfree(msg);
if (mem_ctx)
talloc_destroy(mem_ctx);
- str_list_free(&search_attrs);
return ntstatus;
}
More information about the samba-cvs
mailing list