summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-29 17:07:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:07 -0500
commitae30a44bc03c0c92d3444efa0535babb73c08dea (patch)
tree786449dcbb06a21194d1a20355e553725f262177 /source3
parent5e924c39621eacea14be01208a7eec58a0d1681a (diff)
downloadsamba-ae30a44bc03c0c92d3444efa0535babb73c08dea.tar.gz
samba-ae30a44bc03c0c92d3444efa0535babb73c08dea.tar.bz2
samba-ae30a44bc03c0c92d3444efa0535babb73c08dea.zip
r16683: Fix bug #3900 reported by jason@ncac.gwu.edu.
Jeremy. (This used to be commit 8c7e40f2a469df34aff0e63270a78e669d240b59)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ldap.c4
1 files changed, 2 insertions, 2 deletions
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;
}