LDAP receive only needed attributes on search
Andrew Bartlett
abartlet at pcug.org.au
Wed Feb 13 05:02:02 GMT 2002
metzemix at gmx.de wrote:
>
> Hi jerry,
>
> here is the patch
>
> ------------------------------------------------
> --- pdb_ldap-o.c Wed Feb 13 11:33:46 2002
> +++ pdb_ldap-n.c Wed Feb 13 11:49:36 2002
> @@ -184,10 +184,18 @@
> {
> int scope = LDAP_SCOPE_SUBTREE;
> int rc;
> + char *attr[]= { "uid", "pwdLastSet", "logonTime",
> + "logoffTime", "kickoffTime", "cn",
> + "pwdCanChange", "pwdMustChange",
> + "dislplayName", "homeDrive",
> + "smbHome", "scriptPath",
> + "profilePath", "description",
> + "userWorkstation", "rid",
> + "primaryGroupID", NULL };
These should be declared as as const array at the top of the file to
avoid duplication.
Andrew Bartlett
--
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
More information about the samba-technical
mailing list