1. Затем smbldap-populate,
2.smbldap-useradd -a newuser,
3. smbldap-passwd и вроде все для начального запуска сделано. Достаточно просто - если знать что делать :)
Как насчет smbpasswd -w пасс ?
[root@srv ~]# smbldap-populate
Populating LDAP directory for domain SRV (S-1-5-21-2300321411-275617625-2483259475)
(using builtin directory structure)
can't extract first attr and value from suffix srv at /usr/sbin/smbldap-populate line 149.
Очень мило =( Пойду смотреть че там в суфиксе накосячено =(
Бага админам на заметку - при попытке тыкнуть кнопку из раздела "Служба каталогов" - "Запустить, остановить или перезапустить службу..." он отдает:
Бакенд
backend not found: template-chkconfig
Поехали дальше:[root@srv ~]# smbldap-populate
Populating LDAP directory for domain SRV (S-1-5-21-2300321411-275617625-2483259475)
(using builtin directory structure)
entry dc=linuxuspeh already exist.
entry ou=People,dc=linuxuspeh already exist.
entry ou=Group,dc=linuxuspeh already exist.
adding new entry: ou=Host,dc=linuxuspeh
adding new entry: ou=Idmap,dc=linuxuspeh
adding new entry: uid=root,ou=People,dc=linuxuspeh
adding new entry: uid=nobody,ou=People,dc=linuxuspeh
adding new entry: cn=Domain Admins,ou=Group,dc=linuxuspeh
adding new entry: cn=Domain Users,ou=Group,dc=linuxuspeh
adding new entry: cn=Domain Guests,ou=Group,dc=linuxuspeh
adding new entry: cn=Domain Computers,ou=Group,dc=linuxuspeh
adding new entry: cn=Administrators,ou=Group,dc=linuxuspeh
adding new entry: cn=Account Operators,ou=Group,dc=linuxuspeh
adding new entry: cn=Print Operators,ou=Group,dc=linuxuspeh
adding new entry: cn=Backup Operators,ou=Group,dc=linuxuspeh
adding new entry: cn=Replicators,ou=Group,dc=linuxuspeh
entry sambaDomainName=SRV,dc=linuxuspeh already exist. Updating it...
Please provide a password for the domain root:
Changing UNIX and samba passwords for root
New password:
Retype new password:
[root@srv ~]#
2. [root@srv ~]# smbldap-useradd -a try1
3. [root@srv ~]# smbldap-passwd try1
Changing UNIX and samba passwords for try1
New password:
Retype new password:
[root@srv ~]#
!!!!!!!!!!
[root@srv ~]# smbclient -L localhost -U try1
Password:
Domain=[SRV] OS=[Unix] Server=[Samba 3.0.30-ALT]
Sharename Type Comment
--------- ---- -------
test Disk
IPC$ IPC IPC Service (Samba server on srv (v. 3.0.30-ALT))
try1 Disk Home Directory for 'try1'
Domain=[SRV] OS=[Unix] Server=[Samba 3.0.30-ALT]
Server Comment
--------- -------
Workgroup Master
--------- -------
LINUXUSPEH LINUXWKS
Итак, если я сейчас свою самбу на рабочей станции настрою не на "USER", а на "DOMAIN" и впишу туда "СЕРВЕР ИМЕН" сервака своего оно ПО ИДЕЕ должно сработать?