adding new entry: ou=Users,dc=easy,dc=com adding new entry: ou=Groups,dc=easy,dc=com adding new entry: ou=Computers,dc=easy,dc=com adding new entry: ou=Idmap,dc=easy,dc=com adding new entry: uid=root,ou=Users,dc=easy,dc=com adding new entry: uid=nobody,ou=Users,dc=easy,dc=com adding new entry: cn=Domain Admins,ou=Groups,dc=easy,dc=com adding new entry: cn=Domain Users,ou=Groups,dc=easy,dc=com adding new entry: cn=Domain Guests,ou=Groups,dc=easy,dc=com adding new entry: cn=Domain Computers,ou=Groups,dc=easy,dc=com adding new entry: cn=Administrators,ou=Groups,dc=easy,dc=com adding new entry: cn=Account Operators,ou=Groups,dc=easy,dc=com adding new entry: cn=Print Operators,ou=Groups,dc=easy,dc=com adding new entry: cn=Backup Operators,ou=Groups,dc=easy,dc=com adding new entry: cn=Replicators,ou=Groups,dc=easy,dc=com adding new entry: sambaDomainName=easy-pdc,dc=easy,dc=com
Please provide a password for the domain root: Changing password for root New password : jinbiao (admin的ldap管理密码) Retype new password : jinbiao (admin的ldap管理密码)
查看Samba的SID编号:
详细操作: # net getlocalsid
SID for domain EASY-PDC is: S-1-5-21-810223790-3119279897-2165375470
为Samba添加用户和计算机名:
详细操作: # smbldap-useradd -a user1 (添加一个samba帐号)
# smbldap-useradd -a -m user2 (添加一个samba帐号并创建主目录)
# smbldap-useradd -m user3 (添加一个系统用户帐号并创建主目录)
# smbldap-useradd -w winxp$ (添加一个域计算机帐号)
更改user2帐号的密码:
详细操作: # smbldap-passwd user2
Changing password for user2 New password : 123456 (用户密码) Retype new password : 123456 (确认用户密码)
添加user2帐号的信息:
详细操作: # smbldap-userinfo user2
Changing the user information for user2 Enter the new value, or press ENTER for the default User Shell [/bin/bash]: /bin/sh Full Name [System User]: fan jin biao Room Number []: 4873 Work Phone []: 013060677004 Home Phone []: 82-020-84680605 Other []: ha ha! LDAP updated