smbpasswd -a не добавляет пользователей, а
ldapadduser users добавляет.
кусок smb.conf
Код: Выделить всё
add user script = /usr/local/bin/ldapadduser %u users
add group script = /usr/local/bin/ldapaddgroup %g
add machine script = /usr/local/bin/ldapaddmachine %u computers
add user to group script = /usr/local/bin/ldapaddusertogroup %u %g
delete user script = /usr/local/bin/ldapdeleteuser %u
delete group script = /usr/local/bin/ldapdeletegroup %g
delete user from group script = /usr/local/bin/ldapdeleteuserfromgroup %u %g
set primary group script = /usr/local/bin/ldapsetprimarygroup %u %g
rename user script = /usr/local/bin/ldaprenameuser %uold %unew
Код: Выделить всё
[backup]:/var/log# which ldapadduser
/usr/local/bin/ldapadduser
[backup]:/var/log# smbpasswd -a vasiliy
New SMB password:
Retype new SMB password:
Failed to modify password entry for user vasiliy
[backup]:/var/log# ldapadduser vasyok users
Successfully added user vasyok to LDAP
Successfully set password for user vasyok
Successfully created home directory for user vasyok
[backup]:/var/log# smbpasswd -a vasyok
New SMB password:
Retype new SMB password:
Added user vasyok.
куда рыть?