mirror of
https://github.com/samba-team/samba.git
synced 2025-08-30 17:49:30 +03:00
r16683: Fix bug #3900 reported by jason@ncac.gwu.edu.
Jeremy.
(This used to be commit 8c7e40f2a4
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
5e924c3962
commit
ae30a44bc0
@ -3796,7 +3796,7 @@ static NTSTATUS ldapsam_lookup_rids(struct pdb_methods *methods,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
type = atol(attr);
|
type = (enum SID_NAME_USE)atol(attr);
|
||||||
|
|
||||||
/* Consistency checks */
|
/* Consistency checks */
|
||||||
if ((is_builtin && (type != SID_NAME_ALIAS)) ||
|
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);
|
id->gid = strtoul(gid_str, NULL, 10);
|
||||||
*type = strtoul(value, NULL, 10);
|
*type = (enum SID_NAME_USE)strtoul(value, NULL, 10);
|
||||||
ret = True;
|
ret = True;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user