ubuntuserver810:smbldaptools
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ubuntuserver810:smbldaptools [2008/12/11 10:47] – svschwartz | ubuntuserver810:smbldaptools [2008/12/11 14:42] (current) – svschwartz | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| < | < | ||
| apt-get update | apt-get update | ||
| - | apt-get install smbldap-tools samba-common | + | apt-get install smbldap-tools |
| </ | </ | ||
| Line 16: | Line 16: | ||
| masterPw=" | masterPw=" | ||
| </ | </ | ||
| + | |||
| + | Получим идентификатор **SID((Secure ID))** для нашего PDC((Primary Domain Controller)) | ||
| + | < | ||
| + | net getlocalsid | ||
| + | </ | ||
| + | |||
| + | Редактируем файл **smbldap.conf** | ||
| + | <code apache> | ||
| + | # Put your own SID. To obtain this number do: "net getlocalsid" | ||
| + | # If not defined, parameter is taking from "net getlocalsid" | ||
| + | SID=" | ||
| + | |||
| + | # Domain name the Samba server is in charged. | ||
| + | # If not defined, parameter is taking from smb.conf configuration file | ||
| + | # Ex: sambaDomain=" | ||
| + | sambaDomain=" | ||
| + | |||
| + | # LDAP Suffix | ||
| + | # Ex: suffix=dc=IDEALX, | ||
| + | suffix=" | ||
| + | |||
| + | ############################################################################## | ||
| + | # | ||
| + | # SAMBA Configuration | ||
| + | # | ||
| + | ############################################################################## | ||
| + | |||
| + | # The UNC path to home drives location (%U username substitution) | ||
| + | # Just set it to a null string if you want to use the smb.conf 'logon home' | ||
| + | # directive and/or disable roaming profiles | ||
| + | # Ex: userSmbHome=" | ||
| + | userSmbHome=" | ||
| + | |||
| + | # The UNC path to profiles locations (%U username substitution) | ||
| + | # Just set it to a null string if you want to use the smb.conf 'logon path' | ||
| + | # directive and/or disable roaming profiles | ||
| + | # Ex: userProfile=" | ||
| + | userProfile=" | ||
| + | |||
| + | # Domain appended to the users " | ||
| + | # when smbldap-useradd -M is used | ||
| + | # Ex: mailDomain=" | ||
| + | mailDomain=" | ||
| + | </ | ||
| + | |||
| + | Инициализируем наш сервер директорий | ||
| + | < | ||
| + | smbldap-populate | ||
| + | </ | ||
| + | |||
| + | Вывод будет примерно следующим | ||
| + | < | ||
| + | Populating LDAP directory for domain DRIVESOURCE (S-1-5-21-4205727931-4131263253-1851132061) | ||
| + | (using builtin directory structure) | ||
| + | |||
| + | entry dc=drivesource, | ||
| + | adding new entry: ou=Users, | ||
| + | adding new entry: ou=Groups, | ||
| + | adding new entry: ou=Computers, | ||
| + | adding new entry: ou=Idmap, | ||
| + | adding new entry: uid=root, | ||
| + | adding new entry: uid=nobody, | ||
| + | adding new entry: cn=Domain Admins, | ||
| + | adding new entry: cn=Domain Users, | ||
| + | adding new entry: cn=Domain Guests, | ||
| + | adding new entry: cn=Domain Computers, | ||
| + | adding new entry: cn=Administrators, | ||
| + | adding new entry: cn=Account Operators, | ||
| + | adding new entry: cn=Print Operators, | ||
| + | adding new entry: cn=Backup Operators, | ||
| + | adding new entry: cn=Replicators, | ||
| + | adding new entry: sambaDomainName=DRIVESOURCE, | ||
| + | |||
| + | Please provide a password for the domain root: | ||
| + | Changing UNIX and samba passwords for root | ||
| + | New password: | ||
| + | Retype new password: | ||
| + | </ | ||
| + | |||
| + | В процессе инициализации создается учетная запись администратора домена с логином **root** для которого собственно и запрашивается пароль! | ||
ubuntuserver810/smbldaptools.1228992436.txt.gz · Last modified: (external edit)
