[Samba] samba member logon.. question.

Rowland Penny rowlandpenny at googlemail.com
Fri Apr 10 08:03:53 MDT 2015

On 10/04/15 14:22, Andrey Repin wrote:
> Greetings, Rowland Penny!
>> On 10/04/15 08:54, Luca Olivetti wrote:
>>> El 09/04/15 a les 18:31, Rowland Penny ha escrit:
>>>> If your tools rely on the posix objectclasses being there, then they are
>>>> broken. The posix objectclasses are auxiliaries of other AD
>>>> objectclasses and as such, no windows tools will add them.
>>> but, e.g., samba-tool with --uid will:
>> Yes, I know, but it shouldn't!
> Ok, what other schema contains the following attributes:
> uidNumber
> unixHomeDirectory
> loginShell
> gidNumber
> ?
>> I believe it is this line in samdb.py that adds it:
>> ldbmessage2["objectClass"] = ldb.MessageElement('posixAccount',
>> ldb.FLAG_MOD_ADD, 'objectClass')
>> If I knew how to format a patch, I would propose its removal, because
>> A) I think it shouldn't be there
>> B) I know it works without it
>> Also, the classicupgrade shouldn't add the posix objectclasses either.
>> Why shouldn't you add the posix objectclasses ? Well consider this, you
>> have a domain with two admins, one who adds users from Unix using tools
>> that add the posix objectclasses and one that uses ADUC and the UNIX
>> Attributes tab. The Unix based admin uses tools that rely on the posix
>> objectclasses and can see all the users they added, but they will not
>> see any users that the ADUC based admin added.
>> Or to put it another way, Samba 4 working in AD mode is trying to be
>> compatible with windows AD, so Samba shouldn't add anything that windows
>> doesn't.
> You're making no sense whatsoever. How would your proposed Samba communicate
> with POSIX system it is running on then?

Because you do not understand the term 'auxiliary'.

This means that you get all the rfc2307 attributes without needing to 
add the actual posix objectclasses.

Don't believe me???

use the Samba tool 'ldbedit' open sam.ldb, choose a user at random that 
doesn't have a 'uidNumber' attribute, add 'uidNumber: 20000' . Do not 
add anything else
Close and save ldbedit

Reopen ldbedit, go to the user you added the 'uidNumber' to, oh look it 
is still there, check the objectclasses, oh look, there isn't a posix 


More information about the samba mailing list