Εγκατάσταση SAMBA+LDAP Τελικές Ρυθμίσεις

E-mail Εκτύπωση PDF
Αξιολόγηση Χρήστη: / 0
ΧείριστοΆριστο 

Τελική ρύθμιση του SAMBA.
Τοποθετούμε το LDAP password του cn=admin,dc=myhost,dc=mydomain,dc=gr στο SAMBA (γράφεται στο αρχείο /var/lib/samba/secrets.tdb).
#smbpasswd –w
Setting stored password for cn=admin,dc=myhost,dc=mydomain,dc=gr in secrets.tdb
Password:******
Verify password:******

Γεμίζουμε την βάση δεδομένων του LDAP με τα ou που δηλώσαμε στο smbldap.conf καθώς και τους χρήστες Administrator,guest και root.
#smbldap-populate –a Administrator –b nobody –u 2000 –g 2000
users are created with uid >=2000
groups are created with uid >=2000
Τοποθετούμε το password του root για το SAMBA (ίδιο με του admin στο LDAP) και δημιουργούμε το χρήστη root.
#smbpasswd –a root
Θέτουμε τον κωδικό του Administrator ίδιο με του root και ενεργοποιούμε τον Administartor χρήστη του LDAP.
#smbldap-passwd Administrator
#smbldap-usermod –J Administrator
Ελέγχουμε να δούμε εάν τα βασικά Domain του SAMBA υπάρχουν και στον LDAP εξυπηρετητή:
#net rpc group
password:*****
Domain Admins
Domain Users
Domain Guests
Domain Computers
Users
#slapcat |grep Group |grep dn
dn: ou=Groups,dc=myhost,dc=mydomain,dc=gr
dn: cn=Domain Admins,ou=Groups,dc=myhost,dc=mydomain,dc=gr
dn: cn=Domain Users,ou=Groups,dc=myhost,dc=mydomain,dc=gr
dn: cn=Domain Guests,ou=Groups,dc=myhost,dc=mydomain,dc=gr
dn: cn=Domain Computers,ou=Groups,dc=myhost,dc=mydomain,dc=gr
dn: cn=Administrators,ou=Groups,dc=myhost,dc=mydomain,dc=gr
dn: cn=Account Operators,ou=Groups,dc=myhost,dc=mydomain,dc=gr
dn: cn=Print Operators,ou=Groups,dc=myhost,dc=mydomain,dc=gr
dn: cn=Backup Operators,ou=Groups,dc=myhost,dc=mydomain,dc=gr
dn: cn=Replicators,ou=Groups,dc=myhost,dc=mydomain,dc=gr
dn: sambaSID=S-1-5-32-545,ou=Groups,dc=myhost,dc=mydomain,dc=gr
Προσδίδουμε τα δικαιώματα του SAMBA DOMAIN στο χρήστη Administrator. Τα δικαιώματα είναι τα εξής:

#net rpc rights list ( -S servername –U Username%Password )
password:*****
SeMachineAccountPrivilege Add machines to domain
SeTakeOwnershipPrivilege Take ownership of files or other objects
SeBackupPrivilege Back up files and directories
SeRestorePrivilege Restore files and directories
SeRemoteShutdownPrivilege Force shutdown from a remote system
SePrintOperatorPrivilege Manage printers
SeAddUsersPrivilege Add users and groups to the domain
SeDiskOperatorPrivilege Manage disk shares
και δίνω στο χρήστη Administrator του LDAP πλήρη δικαιώματα στο SAMBA DOMAIN:

#net –S PDC –U root%Password rpc rights grant “DOMAIN\Domain Admins” SeMachineAccountPrivilege SeTakeOwnershipPrivilege SeRemoteShutdownPrivilege SePrintOperatorPrivilege SeAddUsersPrivilege SeDiskOperatorPrivilege
επιβεβαιώνω ότι όλα έγιναν σωστά:

#net rpc rights list accounts
password:*******
BUILTIN\Print Operators
No privileges assigned
BUILTIN\Account Operators
No privileges assigned
BUILTIN\Backup Operators
No privileges assigned
BUILTIN\Server Operators
No privileges assigned
LDAP\Domain Admins
SeMachineAccountPrivilege
SeTakeOwnershipPrivilege
SeBackupPrivilege
SeRestorePrivilege
SeRemoteShutdownPrivilege
SePrintOperatorPrivilege
SeAddUsersPrivilege
SeDiskOperatorPrivilege
BUILTIN\Administrators
SeMachineAccountPrivilege
SeTakeOwnershipPrivilege
SeBackupPrivilege
SeRestorePrivilege
SeRemoteShutdownPrivilege
SePrintOperatorPrivilege
SeAddUsersPrivilege
SeDiskOperatorPrivilege
Everyone
No privileges assigned
και πλέον ο Administrator μπορεί να συνδεθεί στο domain ως εξης:
#sudo apt-get install smbclient
#smbclient –L LDAP –U Administrator
password:*****
Domain=[LDAP] OS=[Unix] Server=[Samba 3.0.24]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Main LDAP Server)
C$ Disk
Administrator Disk Home Directories
Domain=[LDAP] OS=[Unix] Server=[Samba 3.0.24]
Server Comment
--------- -------
LDAP Main LDAP Server
Workgroup Master
--------- -------
LDAP LDAP



Tags: secrets.tdb  samba  ldap  smbpasswd  


Μοιραστείτε αυτό το άρθρο
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Dig Me Joomla Free PHP

Σχόλια
Προσθήκη νέου Αναζήτηση RSS
caicai  - http://www.wholesaleyy.com   |2010-10-27 07:01:06
Men's Clothing
Women's Clothing
polo T-Shirts
ED Hardy T-Shirts
Christian
Audigier T-Shirts
A&F T-Shirts
D&G T-Shirts
Louis Vuitton T-Shirts
gucci
T-Shirts
Lacoste T-Shirts
Chanel T-Shirts
Armani T-Shirts
Burberry
T-Shirts
Prada T-Shirts
Versace T-Shirts



Men's Clothing
Women's
Clothing
Men's shoes
Women's shoes
handbags
Accessories
sunglasses
Jewelry
make
up
GHD
CHI
Men's jersey
Golf
Watches
baby & kids
OEM


Men's Clothing
Women's
Clothing
Men's shoes
Women's shoes
handbags
Accessories
sunglasses
Jewelry
make
up
GHD
CHI
Men's jersey
Golf
Watches
baby & kids
OEM
caicai  - http://www.wholesaleyy.com   |2010-10-27 07:01:35
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com
link:http://www.wholesalebb.com



link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
link:http://www.wholesaleuu.com
lin...
Γράψτε σχόλιο
Όνομα:
Email:
 
Τίτλος:
 
Please input the anti-spam code that you can read in the image.
Τελευταία Ενημέρωση ( Σάββατο, 28 Μάρτιος 2009 23:04 )  

Seach By Google

Translate this website :

Επιλογές


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99

Manuals


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/flakgr/public_html/libraries/joomla/cache/handler/callback.php on line 99

Σε σύνδεση

Έχουμε 10 επισκέπτες συνδεδεμένους

Τελευταία Σχόλια