How to configure LDAP and Samba Server.pdf - Google Drive

3 downloads 161 Views 810KB Size Report
Configure LDAP and SAMBA. Vong oun Page 3. Page 3 of 17. How to configure LDAP and Samba Server.pdf. How to configure LD
Configure LDAP and SAMBA Configure LDAP and SAMBA ☺





Package for install LDAP:  yast –i openldap2  yast –i openldap2-client  yast –i nss_ldap  yast –i pam_ldap

command for restart service in LDAP:  rcldap restart

Now go to configure LDAP Server by:  yast -> Network Services -> LDAP Server -> tick: yes -> Configure -> Add database -> Base DN: dc=19sa,dc=com -> put password for LDAP -> Finish  and in: TLS Settings we must tick no

Here is the step that we do it:

Vong oun

Page 1

Configure LDAP and SAMBA

Vong oun

Page 2

Configure LDAP and SAMBA

Vong oun

Page 3

Configure LDAP and SAMBA ☺

Now go to configure LDAP Client by:  yast -> Network Service -> LDAP Client -> tick: Use LDAP -> And put the IP address of LDAP and LDAP Base DN -> Advanced Configuration -> Administration settings -> In Administrator DN put: cn=Administrator -> tick: Append Base DN-> tick: Create Default Configuration Objects - > tick: Home Directories on This Machine -> Accept -> and put the password of LDAP Here is the step that we do it:

Vong oun

Page 4

Configure LDAP and SAMBA

Vong oun

Page 5

Configure LDAP and SAMBA

Restart Service by use command: rcldap restart ☺

Create OU in LDAP:  Create file that have extension .ldif and add it into LDAP by use command: • ldapadd –x –D “cn=Administrator,dc=19sa,dc=com” –W –f ou.ldif Here is the step that we do it:

Vong oun

Page 6

Configure LDAP and SAMBA



Create User in LDAP:  Create file that have extension .ldif and add into ldap by use command: • ldapadd –x –D “cn=Administrator,dc=19sa,dc=com” –W –f oun.ldif Here is the step that we do it:

Vong oun

Page 7

Configure LDAP and SAMBA ☺ 



command for put password for user in ldap: ldappasswd –x –D “cn=Administrator,dc=19sa,dc=com” –W –S “uid=oun,ou=staff,dc=19sa,dc=com”

command for search user or ou or see contain ldap:

getent passwd (see the name of user in ldap) ldapsearch –x “uid=oun” (search user in ldap) ldapsearch –x “ou=staff” (search user in ou) ldapsearch –x –D “cn=Administrator,dc=19sa,dc=com” –x “uid=oun” -W (search LDAP entry)

☺ Combine LDAP and SAMBA:  Install service Samba: _ Samba _ Samba-client _ samba-doc • command for restart services samba: rcnmb restart rcsmb restart  yast -> Network Services -> Samba Server -> LDAP Setting -> tick: Use LDAP Password -> put password for admin by use password of LDAP -> Test Connection -> OK -> Finish

Vong oun

Page 8

Configure LDAP and SAMBA

Vong oun

Page 9

Configure LDAP and SAMBA

Vong oun

Page 10

Configure LDAP and SAMBA

 Command add user ldap to samba: smbpasswd –a oun

Vong oun

Page 11

Configure LDAP and SAMBA  Add some line into file: /etc/openldap/slapd.conf

 and add some line in file: /etc/ldap.conf

Vong oun

Page 12

Configure LDAP and SAMBA

Command for restart service:

Vong oun

Page 13

Configure LDAP and SAMBA



Vong oun

Take xp to join domain in ldap:

Page 14

Configure LDAP and SAMBA

Vong oun

Page 15

Configure LDAP and SAMBA



Vong oun

Now take user in ldap for login:

Page 16

Configure LDAP and SAMBA

Vong oun

Page 17

Suggest Documents