Hello,

I have in my smb.conf, the follow line is:

add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u

So, with the line machines get logon in domain, but machines come to /etc/passwd.

I would like add all machines in LDAP, how I can to do it ?


ldap admin dn = cn=admin,dc=brazil,dc=mg,dc=gov,dc=br
        ldap group suffix = ou=groups
        ldap machine suffix = ou=computers
        ldap passwd sync = yes
        ldap suffix = dc=brazil,dc=mg,dc=gov,dc=br
        ldap ssl = no
        ldap user suffix = ou=defensoria
        passdb backend = ldapsam:ldap://10.65.8.250
        passdb backend = tdbsam
        hosts allow = 127.0.0.1, 10.65.8.0/255.255.252.0