informatica:linux:ldap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
informatica:linux:ldap [2010/11/26 16:51] – 95.20.4.69 | informatica:linux:ldap [2010/11/26 18:44] – 95.20.4.69 | ||
---|---|---|---|
Line 2: | Line 2: | ||
open-ldap slapd ldap | open-ldap slapd ldap | ||
+ | |||
+ | http:// | ||
===== Instalación ===== | ===== Instalación ===== | ||
Line 98: | Line 100: | ||
checkpoint 128 15 | checkpoint 128 15 | ||
</ | </ | ||
+ | |||
+ | |||
===== Arrancar ldap ===== | ===== Arrancar ldap ===== | ||
- | Para arrancar ldap con ese archivo de configuracion: | + | No se por que demonios el '/ |
- | sudo / | + | sudo / |
| | ||
Comprobar que ha arrancado: | Comprobar que ha arrancado: | ||
ps ax | grep ldap | ps ax | grep ldap | ||
- | | + | |
- | | + | |
- | | + | Para pararlo matar el proceso con kill |
+ | |||
+ | ===== Insertar registro ===== | ||
+ | |||
+ | 1. Crear un archivo .ldif: | ||
+ | |||
+ | sudo vim /tmp/ejemplo1.ldif | ||
+ | |||
+ | Con el siguiente contenido: | ||
+ | |||
+ | < | ||
+ | ## DEFINE DIT ROOT/BASE/SUFFIX #### | ||
+ | ## uses RFC 2377 format | ||
+ | ## replace example and com as necessary below | ||
+ | ## or for experimentation leave as is | ||
+ | |||
+ | ## dcObject is an AUXILLIARY objectclass and MUST | ||
+ | ## have a STRUCTURAL objectclass (organization in this case) | ||
+ | # this is an ENTRY sequence and is preceded by a BLANK line | ||
+ | |||
+ | dn: dc=example, | ||
+ | dc: example | ||
+ | description: | ||
+ | in this line up to 32K continuation data for the line above must | ||
+ | have <CR> or < | ||
+ | on both Windows and *nix system | ||
+ | objectClass: | ||
+ | objectClass: | ||
+ | o: Example, Inc. | ||
+ | |||
+ | ## FIRST Level hierarchy - people | ||
+ | ## uses mixed upper and lower case for objectclass | ||
+ | # this is an ENTRY sequence and is preceded by a BLANK line | ||
+ | |||
+ | dn: ou=people, dc=example, | ||
+ | ou: people | ||
+ | description: | ||
+ | objectclass: | ||
+ | |||
+ | ## SECOND Level hierarchy | ||
+ | ## ADD a single entry under FIRST (people) level | ||
+ | # this is an ENTRY sequence and is preceded by a BLANK line | ||
+ | # the ou: Human Resources is the department name | ||
+ | |||
+ | dn: cn=Robert Smith, | ||
+ | objectclass: | ||
+ | cn: Robert Smith | ||
+ | cn: Robert J Smith | ||
+ | cn: bob smith | ||
+ | sn: smith | ||
+ | uid: rjsmith | ||
+ | userpassword: | ||
+ | carlicense: HISCAR 123 | ||
+ | homephone: 555-111-2222 | ||
+ | mail: r.smith@example.com | ||
+ | mail: rsmith@example.com | ||
+ | mail: bob.smith@example.com | ||
+ | description: | ||
+ | ou: Human Resources | ||
+ | </code> | ||
+ | |||
+ | 2. Insertar el registro: | ||
+ | |||
+ | ldapadd | ||
+ | |||
+ | |||
+ | ===== Buscar registro ===== | ||
+ | |||
+ | ldapsearch -H ldap://192.168.1.17 | ||
+ | |||
+ | Me ha salido bien antes, ahora no me furrula (quiza porque borre el registro | ||
+ | |||
+ | |
informatica/linux/ldap.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1