User Tools

Site Tools


ubuntuserver810:smbldaptools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntuserver810:smbldaptools [2008/12/11 10:52] svschwartzubuntuserver810:smbldaptools [2008/12/11 14:42] (current) svschwartz
Line 17: Line 17:
 </code> </code>
  
-Получим идентификатор для нашего PDC+Получим идентификатор **SID((Secure ID))** для нашего PDC((Primary Domain Controller))
 <code> <code>
 net getlocalsid net getlocalsid
Line 23: Line 23:
  
 Редактируем файл **smbldap.conf** Редактируем файл **smbldap.conf**
-<code bash>+<code apache>
 # Put your own SID. To obtain this number do: "net getlocalsid". # Put your own SID. To obtain this number do: "net getlocalsid".
 # If not defined, parameter is taking from "net getlocalsid" return # If not defined, parameter is taking from "net getlocalsid" return
Line 31: Line 31:
 # If not defined, parameter is taking from smb.conf configuration file # If not defined, parameter is taking from smb.conf configuration file
 # Ex: sambaDomain="IDEALX-NT" # Ex: sambaDomain="IDEALX-NT"
-sambaDomain="DOMSMB"+sambaDomain="DRIVESOURCE"
  
 # LDAP Suffix # LDAP Suffix
 # Ex: suffix=dc=IDEALX,dc=ORG # Ex: suffix=dc=IDEALX,dc=ORG
-suffix="dc=company,dc=com"+suffix="dc=drivesource,dc=ru"
  
 ############################################################################## ##############################################################################
Line 47: Line 47:
 # directive and/or disable roaming profiles # directive and/or disable roaming profiles
 # Ex: userSmbHome="\\PDC-SMB3\%U" # Ex: userSmbHome="\\PDC-SMB3\%U"
-userSmbHome="\\PDC-SRV\%U"+userSmbHome="\\DAEMON\%U"
  
 # The UNC path to profiles locations (%U username substitution) # The UNC path to profiles locations (%U username substitution)
Line 53: Line 53:
 # directive and/or disable roaming profiles # directive and/or disable roaming profiles
 # Ex: userProfile="\\PDC-SMB3\profiles\%U" # Ex: userProfile="\\PDC-SMB3\profiles\%U"
-userProfile="\\PDC-SRV\profiles\%U+userProfile="\\DAEMON\profiles\%U"
- +
-# The default Home Drive Letter mapping +
-# (will be automatically mapped at logon time if home directory exist) +
-# Ex: userHomeDrive="H:" +
-userHomeDrive="H:" +
- +
-# The default user netlogon script name (%U username substitution) +
-# if not used, will be automatically username.cmd +
-# make sure script file is edited under dos +
-# Ex: userScript="startup.cmd" # make sure script file is edited under dos +
-userScript="logon.bat"+
  
 # Domain appended to the users "mail"-attribute # Domain appended to the users "mail"-attribute
 # when smbldap-useradd -M is used # when smbldap-useradd -M is used
 # Ex: mailDomain="idealx.com" # Ex: mailDomain="idealx.com"
-mailDomain="idealx.com"+mailDomain="drivesource.ru" 
 +</code>
  
 +Инициализируем наш сервер директорий
 +<code>
 +smbldap-populate
 </code> </code>
 +
 +Вывод будет примерно следующим
 +<code>
 +Populating LDAP directory for domain DRIVESOURCE (S-1-5-21-4205727931-4131263253-1851132061)
 +(using builtin directory structure)
 +
 +entry dc=drivesource,dc=ru already exist. 
 +adding new entry: ou=Users,dc=drivesource,dc=ru
 +adding new entry: ou=Groups,dc=drivesource,dc=ru
 +adding new entry: ou=Computers,dc=drivesource,dc=ru
 +adding new entry: ou=Idmap,dc=drivesource,dc=ru
 +adding new entry: uid=root,ou=Users,dc=drivesource,dc=ru
 +adding new entry: uid=nobody,ou=Users,dc=drivesource,dc=ru
 +adding new entry: cn=Domain Admins,ou=Groups,dc=drivesource,dc=ru
 +adding new entry: cn=Domain Users,ou=Groups,dc=drivesource,dc=ru
 +adding new entry: cn=Domain Guests,ou=Groups,dc=drivesource,dc=ru
 +adding new entry: cn=Domain Computers,ou=Groups,dc=drivesource,dc=ru
 +adding new entry: cn=Administrators,ou=Groups,dc=drivesource,dc=ru
 +adding new entry: cn=Account Operators,ou=Groups,dc=drivesource,dc=ru
 +adding new entry: cn=Print Operators,ou=Groups,dc=drivesource,dc=ru
 +adding new entry: cn=Backup Operators,ou=Groups,dc=drivesource,dc=ru
 +adding new entry: cn=Replicators,ou=Groups,dc=drivesource,dc=ru
 +adding new entry: sambaDomainName=DRIVESOURCE,dc=drivesource,dc=ru
 +
 +Please provide a password for the domain root: 
 +Changing UNIX and samba passwords for root
 +New password: 
 +Retype new password: 
 +</code>
 +
 +В процессе инициализации создается учетная запись администратора домена с логином **root** для которого собственно и запрашивается пароль!
ubuntuserver810/smbldaptools.1228992723.txt.gz · Last modified: (external edit)