From ae30a44bc03c0c92d3444efa0535babb73c08dea Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 29 Jun 2006 17:07:21 +0000 Subject: r16683: Fix bug #3900 reported by jason@ncac.gwu.edu. Jeremy. (This used to be commit 8c7e40f2a469df34aff0e63270a78e669d240b59) --- source3/passdb/pdb_ldap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 839822843b..4d0c84b543 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -3796,7 +3796,7 @@ static NTSTATUS ldapsam_lookup_rids(struct pdb_methods *methods, continue; } - type = atol(attr); + type = (enum SID_NAME_USE)atol(attr); /* Consistency checks */ if ((is_builtin && (type != SID_NAME_ALIAS)) || @@ -4560,7 +4560,7 @@ static BOOL ldapsam_sid_to_id(struct pdb_methods *methods, } 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; } -- cgit