Author: gd
Date: 2007-01-22 16:33:55 +0000 (Mon, 22 Jan 2007)
New Revision: 20950

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20950

Log:
Use attr_uidnumber and attr_gidnumber for the LDAP queries.

Guenther

Modified:
   branches/SAMBA_3_0_24/source/sam/idmap_ad.c


Changeset:
Modified: branches/SAMBA_3_0_24/source/sam/idmap_ad.c
===================================================================
--- branches/SAMBA_3_0_24/source/sam/idmap_ad.c 2007-01-22 12:33:27 UTC (rev 
20949)
+++ branches/SAMBA_3_0_24/source/sam/idmap_ad.c 2007-01-22 16:33:55 UTC (rev 
20950)
@@ -170,14 +170,14 @@
                case ID_USERID:
                        if (asprintf(&expr, 
"(&(|(sAMAccountType=%d)(sAMAccountType=%d)(sAMAccountType=%d))(%s=%d))",
                                ATYPE_NORMAL_ACCOUNT, ATYPE_WORKSTATION_TRUST, 
ATYPE_INTERDOMAIN_TRUST,
-                               ads->schema.posix_uidnumber_attr, 
(int)unid.uid) == -1) {
+                               attr_uidnumber, (int)unid.uid) == -1) {
                                return NT_STATUS_NO_MEMORY;
                        }
                        break;
                case ID_GROUPID:
                        if (asprintf(&expr, 
"(&(|(sAMAccountType=%d)(sAMAccountType=%d))(%s=%d))",
                                ATYPE_SECURITY_GLOBAL_GROUP, 
ATYPE_SECURITY_LOCAL_GROUP,
-                               ads->schema.posix_gidnumber_attr, 
(int)unid.gid) == -1) {
+                               attr_gidnumber, (int)unid.gid) == -1) {
                                return NT_STATUS_NO_MEMORY;
                        }
                        break;

Reply via email to