| home / linux / ldap (navigation links) | LDAP server - listen for connect requests on TCP port 389 |
| ldap search | ldap browse | Links | End |
The standard text format for LDAP data is in LDAP Date Interchange Format (LDIF).
Each line has an attribute name, then a colon and a space, and the value of the attribute.
There are only three basic types of LDAP operations, and each basic type has a few subtypes:
Notice there is no "read" operation; if you want to read an entry, you use a search operation to retrieve it.
An entry can look like this when represented in LDAP Data Interchange Format (LDIF):
"dn" is the distinguished name of the entry; it's neither an attribute nor a part of the entry.
"cn=John Doe" is the entry's RDN (Relative Distinguished Name), and "dc=example,dc=com" is the DN of the parent entry,
Attribute names are typically mnemonic strings, like "cn" for common name, "dc" for domain component, "mail" for e-mail address and "sn" for surname.
The dn is how an entry is uniquely referred to within an LDAP server, similar to an absolute path name or a fully qualified domain name. Notice that the dn is represented similarly to DNS names, with the most specific information first, as opposed to path names, which have the least specific information first. Contrary to how it looks, the root of this LDAP tree, also called the "naming context," is dc=domain,dc=com, not dc=com.
There are no requirements about what you name the root of your LDAP tree, but there are two standards: either the standard I've followed here, which breaks a domain into its various domain components, or one where an organization is referred to at the top level (for example, o=domain.com).
The concept of an object in LDAP is extremely simple: it merely defines what attributes an entry must have and what attributes an entry is allowed to have. All object classes inherit requirements from their parent object classes and add their own.
A schema is a set of rules that governs the way that data can be stored in the directory. The schema defines the type of entries allowed, their attribute structure, and the syntax of the attributes.
The IBM Tivoli Directory Server Version 5.2 includes dynamic schema support. The schema is published as part of the directory information, and is available in the Subschema entry (DN="cn=schema").
To retrieve schema information, you can perform an ldap_search by using the following:
The following command exports the schema to an LDIF file called schemaout.ldif.
How to obtain the Domino LDAP Schema
The resulting output will be very large, and will detail the entire LDAP schema of the Domino server.
Note that the -L will output the results in LDIF format.
Comes in "Domino" directory, and requires nnotes.dll. Aldo, in c:\openLDAP\bin !
The "objectclass=*" attribute applies to all entries in the directory:
Use "-x" to solve this error :
Replace "DOMAINNAME" by your domain name, of course (:-)), as "nslookup -type=srv _ldap._tcp.hal.com" at ST852
Hay varias maneras de buscar un usuario
To browse the LDAP directory tree and all its entries conveniently, use the YaST LDAP Browser:
Open http://localhost:81/names.nsf or http://<nombre servidor domino>/names.nsf
Export using LDIF format {gracias, Francisco !}
IBM provides 10 GB.
Using RpmFind, we find we need :
Accés via WS_FTP : host pokgsa.hal.com gives access to
/pokgsa/.home/h1/altemir, exactament el directori de dalt.
Pàgina resultant :
http://pokgsa.hal.com/home/a/l/altemir/web/public/uno.htm
"Everything that you ever wanted to know about LDAP *but were afraid to ask" - series of articles developed to help you understand the wonders of LDAP.
|
|
Site under construction. |
|
Actualitzat 20140901 (a) |
|