svn commit: samba r16682 - in trunk/source/passdb: .

jra at samba.org jra at samba.org
Thu Jun 29 17:07:22 GMT 2006


Author: jra
Date: 2006-06-29 17:07:17 +0000 (Thu, 29 Jun 2006)
New Revision: 16682

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

Log:
Fix bug #3900 reported by jason at ncac.gwu.edu.
Jeremy.

Modified:
   trunk/source/passdb/pdb_ldap.c


Changeset:
Modified: trunk/source/passdb/pdb_ldap.c
===================================================================
--- trunk/source/passdb/pdb_ldap.c	2006-06-29 17:05:18 UTC (rev 16681)
+++ trunk/source/passdb/pdb_ldap.c	2006-06-29 17:07:17 UTC (rev 16682)
@@ -3797,7 +3797,7 @@
 			continue;
 		}
 
-		type = atol(attr);
+		type = (enum SID_NAME_USE)atol(attr);
 
 		/* Consistency checks */
 		if ((is_builtin && (type != SID_NAME_ALIAS)) ||
@@ -4561,7 +4561,7 @@
 		}
 
 		id->gid = strtoul(gid_str, NULL, 10);
-		*type = strtoul(value, NULL, 10);
+		*type = (enum SID_NAME_USE)strtoul(value, NULL, 10);
 		ret = True;
 		goto done;
 	}



More information about the samba-cvs mailing list