The Samba-Bugzilla – Bug 5283
ADUC: Creation of users with preexisting usernames
Last modified: 2009-06-13 13:07:07 UTC
SAMBA 4 doesn't seem to do a preexistence lookup when creating a user account with ADUC.
- I tried for testing purposes to create a second user named "Administrator" under "CN=Users"
- I got a strange error message on the client side telling me something about a corruptes SAM-DB
- On the server side I get "Found 2 records matching user [Administrator]".
This is one of those things that is handled quite well in Windows, because their JET engine sets a unique index on a few attributes. We have the great fun of having to emulate that...
It seems, that this is handled now in a more better way. So the creation of two "Administrators" isn't allowed anymore. But I get a strange error message which hasn't to do much with the problem.
(In reply to comment #2)
> It seems, that this is handled now in a more better way. So the creation of two
> "Administrators" isn't allowed anymore. But I get a strange error message which
> hasn't to do much with the problem.
I was wrong: The creation of two "Administrator" users is still possible, because I get an appropriate warning from smbd.
Yes, we need to implement unique indexs in LDB.
This should be pretty easy to do, but Simo will kill me if I do it before he merges his LDB branch.
How far is now the async LDB library?
I'm working my way towards unique index support this week.
This should be fixed. Thanks for the work on unique indexes.