User Tools

Site Tools


ldap

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ldap [2015/08/02 15:28]
0.0.0.0 aangemaakt
ldap [2021/11/23 14:14] (current)
Line 1: Line 1:
-====== Ldap ======+====== LDAP ======
  
-[[Category:Prutsen]]+LDAP runt op [[adams]]. 
 + 
 +In de kelder ligt een gigantisch boek over LDAP administratie. 
 +Je zoekt dus best op het internet naar commando's en voorbeelden[[https://www.digitalocean.com/community/tutorials/how-to-use-ldif-files-to-make-changes-to-an-openldap-system|.]] 
 + 
 +==== Handige Commandos ==== 
 +Zoeken naar een lid op username (vervang %s door lid): 
 +  ldapsearch -h localhost -b dc=zeus,dc=ugent,dc=be -x 'uid=%s' 
 + 
 +Als query string kun je onder andere ook gebruiken: 'cn=%s' (voornaam), 'sn=%s', (achternaam), 'mail=%s' (email) 
 + 
 +Om een lid aan te passen (bijvoorbeeld mail) maak je een ldif bestand aan: 
 + 
 +  # derp-email.ldif 
 +  dn: uid=derp,ou=leden,dc=kelder,dc=zeus,dc=ugent,dc=be 
 +  changetype: modify 
 +  replace: mail 
 +  mail: derp@example.com 
 +   
 +Die je uitvoert met het commando: 
 + 
 +  ldapmodify -h localhost -W -D cn=admin,dc=zeus,dc=ugent,dc=be -f derp-email.ldif 
 + 
 + 
 + 
 +==== Zie ook ==== 
 +  * [[LDAP Over TLS]]
  
-From a technical perspective, LDAP directory consists of a set of hierarchically organized entries. Each entry belongs to certain Object Classes and contains various key=value pairs called attributes. 
-=Installatie= 
-[[http://www.debian-administration.org/article/585/OpenLDAP_installation_on_Debian|debian openldap guide]] 
ldap.1438529313.txt.gz · Last modified: 2021/11/23 14:03 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki