diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-01-18 12:06:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:15 -0500 |
commit | 7dad66d8e38e206dd83b88a4e37c0f413b4b69df (patch) | |
tree | 630d03be0f072caa02370fc4794471b3e46ba25e /source4/libcli | |
parent | ba8406fd3fb753deba9c3d5f8179dc70a200375d (diff) | |
download | samba-7dad66d8e38e206dd83b88a4e37c0f413b4b69df.tar.gz samba-7dad66d8e38e206dd83b88a4e37c0f413b4b69df.tar.bz2 samba-7dad66d8e38e206dd83b88a4e37c0f413b4b69df.zip |
r12998: A big update to samldb.c
This updates the module to handle both SID allocation and nextRid
updating while importing users. (As imported users already have a
SID, so don't go via the allocation step). We also ensure that SIDs
in the database are unquie at create time.
Furthermore, at allocation time, we double-check the SID isn't already
in use, and that we don't create a foriegnSecurityPrincipal for a
'local' sid.
Also create random samAccountName entries for users without one (we
were setting $000000-000000000000).
We may want to seperate the uniqueness code from the rest of samldb,
and into a module with the objectguid code, which needs similar
checks. These checks also need to apply to modification, or those
modifications denied outright.
Also update part of the testsuite to validate this.
Andrew Bartlett
(This used to be commit 7a9c8eee4bea88f5f0bb7c62f701476384b7dc84)
Diffstat (limited to 'source4/libcli')
0 files changed, 0 insertions, 0 deletions