Samba e OpenLDAP: creare un controller di dominio: differenze tra le versioni

Riga 654: Riga 654:
<pre>
<pre>
[global]
[global]
workgroup = SCUOLA
workgroup = MIODOMINIO
server string = LAN Server %v
server string = LAN Server %v
wins support = yes
wins support = yes
Riga 691: Riga 691:
##### LDAP Configuration #####
##### LDAP Configuration #####


ldap admin dn = cn=admin,dc=scuola
ldap admin dn = cn=admin,dc=miodominio,dc=local
ldap suffix = dc=scuola
ldap suffix = dc=miodominio,dc=local
ldap group suffix = ou=Groups
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap user suffix = ou=Users
Riga 837: Riga 837:


# The base of your directory in database #1
# The base of your directory in database #1
suffix          "dc=scuola"
suffix          "dc=miodominio,dc=local"


# Where the database file are physically stored for database #1
# Where the database file are physically stored for database #1
Riga 862: Riga 862:
# These access lines apply to database #1 only
# These access lines apply to database #1 only
access to attrs=userPassword,sambaNTPassword,sambaLMPassword
access to attrs=userPassword,sambaNTPassword,sambaLMPassword
         by dn="cn=admin,dc=scuola" write
         by dn="cn=admin,dc=miodominio,dc=local" write
         by anonymous auth
         by anonymous auth
         by self write
         by self write
Riga 881: Riga 881:
# can read everything.
# can read everything.
access to *
access to *
         by dn="cn=admin,dc=scuola" write
         by dn="cn=admin,dc=miodominio,dc=local" write
         by * read
         by * read


Riga 887: Riga 887:
# profile for which they have write access to
# profile for which they have write access to
#access to dn=".*,ou=Roaming,o=morsnet"
#access to dn=".*,ou=Roaming,o=morsnet"
#        by dn="cn=admin,dc=scuola" write
#        by dn="cn=admin,dc=miodominio,dc=local" write
#        by dnattr=owner write
#        by dnattr=owner write


Riga 913: Riga 913:
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666


BASE dc=scuola
BASE dc=miodominio,dc=local
URI ldap://localhost
URI ldap://localhost


Riga 930: Riga 930:
# By default, we will use the same DN (so it will work for standard Samba
# By default, we will use the same DN (so it will work for standard Samba
# release)
# release)
slaveDN="cn=admin,dc=scuola"
slaveDN="cn=admin,dc=miodominio,dc=local"
slavePw="password"
slavePw="password"
masterDN="cn=admin,dc=scuola"
masterDN="cn=admin,dc=miodominio,dc=local"
masterPw="password"
masterPw="password"
</pre>
</pre>
Riga 1 022: Riga 1 022:
# LDAP Suffix
# LDAP Suffix
# Ex: suffix=dc=IDEALX,dc=ORG
# Ex: suffix=dc=IDEALX,dc=ORG
suffix="dc=scuola"
suffix="dc=miodominio,dc=local"


# Where are stored Users
# Where are stored Users
Riga 1 041: Riga 1 041:


# Where to store next uidNumber and gidNumber available
# Where to store next uidNumber and gidNumber available
sambaUnixIdPooldn="sambaDomainName=SCUOLA,${suffix}"
sambaUnixIdPooldn="sambaDomainName=MIODOMINIO,${suffix}"


# Default scope Used
# Default scope Used
Riga 1 118: Riga 1 118:
# 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
mailDomain="scuola"
mailDomain="miodominio.local"


##############################################################################
##############################################################################