Hi all,

        I have smb.conf with:


        add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
        add user script = /usr/local/sbin/smbldap-useradd -m "%u"
        add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
        add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
        add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u" "%g"
        delete user script = /usr/local/sbin/smbldap-userdel "%u"
        delete group script = /usr/local/sbin/smbldap-groupdel "%g"
        delete user from group script = /usr/local/sbin/smbldap-groupmod -x "%u" "%g"
        set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" "%u"

        while i try include the w2k machine in samba domain it create the ldap
        machine account entry:

        dn: uid=suporte$,ou=Computers,dc=unimix,dc=com,dc=br
        objectClass: top
        objectClass: inetOrgPerson
        objectClass: posixAccount
        cn: suporte$
        sn: suporte$
        uid: suporte$
        uidNumber: 1020
        gidNumber: 1000
        homeDirectory: /dev/null
        loginShell: /bin/false
        description: Computer
        gecos: Computer
        
        And don't join in samba domain.

        While i create a machine account manually with:

        dn: uid=suporte$,ou=Computadores,dc=unimix,dc=com,dc=br
        gidNumber: 30000
        uidNumber: 1022
        uid: suporte$
        sambaSID: S-1-5-21-715268823-1473299472-2771147885-3044
        sambaAcctFlags: [W          ]
        cn: suporte
        homeDirectory: /dev/null
        objectClass: top
        objectClass: sambaSamAccount
        objectClass: posixAccount
        objectClass: account

        It join in the samba domain without problem.

        Anyone know why it don't create sambaSamAccount ? 
        Machine account need inetOrgPerson ?
        
        Thanks
                                   

-- 
Fernando Ribeiro - GPG-KEY: 0x8D7255F4
Linux Counter: #273768 - ICQ: 175630330
LPIC-2 - Advanced Linux
Death the graph! Death the mouse
Death patents! Death closed standards!
http://www.nerdgroup.org
http://musb.nerdgroup.org
--------------------------------------
"Grandes mentes discutem id�ias;
Mentes medianas discutem eventos;
Mentes pequenas discutem pessoas."
--------------------------------------
"A mente que se abre a uma nova id�ia
jamais volta ao seu tamanho original."
Albert Einstein
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to