User Tools

Site Tools


informatica:linux:ldap

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
informatica:linux:ldap [2010/11/26 16:56] – s 95.20.4.69informatica:linux:ldap [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 100: Line 100:
 checkpoint 128 15 checkpoint 128 15
 </code>  </code> 
 +
  
  
Line 106: Line 107:
 No se por que demonios el '/etc/init.d/slpad start' me arranca malamente el demonio. Mejor hacerlo a mano (con mucho debug, con la opcion -d): No se por que demonios el '/etc/init.d/slpad start' me arranca malamente el demonio. Mejor hacerlo a mano (con mucho debug, con la opcion -d):
  
-  sudo /usr/sbin/slapd -d 255 -f /etc/ldap/ldap.conf -g openldap -u openldap -h ldap://192.168.1.17 &+  sudo /usr/sbin/slapd -f /etc/ldap/ldap.conf -g openldap -u openldap -h ldap://192.168.1.17 &
      
 Comprobar que ha arrancado: Comprobar que ha arrancado:
  
   ps ax | grep ldap   ps ax | grep ldap
-  2047 pts/0    S      0:00 sudo /usr/sbin/slapd -h ldap://192.168.1.17/ -g openldap -u openldap -f /etc/ldap/ldap.conf -d 255 +  9122 ?        Ssl    0:00 /usr/sbin/slapd -f /etc/ldap/ldap.conf -g openldap -u openldap -h ldap://192.168.1.17 
-  2048 pts/0    Sl     0:00 /usr/sbin/slapd -h ldap://192.168.1.17/ -g openldap -u openldap -f /etc/ldap/ldap.conf -d 255 +
-  +
 Para pararlo matar el proceso con kill Para pararlo matar el proceso con kill
  
Line 178: Line 178:
  
   ldapadd -H ldap://192.168.1.17 -x -D "cn=jimbob,dc=example,dc=com" -f /srv/example.ldif -w dirtysecret   ldapadd -H ldap://192.168.1.17 -x -D "cn=jimbob,dc=example,dc=com" -f /srv/example.ldif -w dirtysecret
 +
  
 ===== Buscar registro ===== ===== Buscar registro =====
  
   ldapsearch -H ldap://192.168.1.17 -LL -b ou=people,dc=example,dc=com "{mail=*smith*)" sn cn mail   ldapsearch -H ldap://192.168.1.17 -LL -b ou=people,dc=example,dc=com "{mail=*smith*)" sn cn mail
-)+
 Me ha salido bien antes, ahora no me furrula (quiza porque borre el registro Me ha salido bien antes, ahora no me furrula (quiza porque borre el registro
  
 +  ldapsearch -xh 192.168.1.17 -b '' -s base subschemaSubentry
informatica/linux/ldap.1290790615.txt.gz · Last modified: 2015/04/13 20:19 (external edit)