LDAP: Listando Atributos com o ldapsearch

Exemplo exportando o schema
ldapsearch -h ldap.empresax.com.br -p 389 -b "DC=empresax,DC=com,Dc=br" -D "CN=wpsbind,OU=LOTUS,OU=TI,DC=empresax,DC=com,Dc=br" -w SenhaWPSBind -s base objectclass=*

Exemplo exportando o schema
ldapsearch -h ldap.empresax.com.br -p 389 -b "DC=empresax,DC=com,Dc=br" -D "CN=wpsbind,OU=LOTUS,OU=TI,DC=empresax,DC=com,Dc=br" -w SenhaWPSBind -x -b cn=schema -s base objectclass=*

Resultado:

# # dn: cn=schema ldapsyntaxes: ( 1.3.18.0.2.8.1 DESC 'IBM attribute type description' ) ldapsyntaxes: ( 1.3.18.0.2.8.3 DESC 'IBM entry UUID' ) ldapsyntaxes: ( 1.3.6.1.4.1.1466.115.121.1.12 DESC 'Distinguished name' ) ldapsyntaxes: ( 1.3.6.1.4.1.1466.115.121.1.15 DESC 'Directory string' )
 * 1) extended LDIF
 * 1) LDAPv3
 * 2) base with scope baseObject
 * 3) filter: objectclass=*
 * 4) requesting: ldapsyntaxes
 * 1) schema

Exemplo 1
# # dn: cn=schema attributetypes: ( 0.9.2342.19200300.100.1.1 NAME ( 'uid' ) DESC 'User shortnam e or userid' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 USAGE userApplications ) attributetypes: ( 0.9.2342.19200300.100.1.10 NAME ( 'manager' ) DESC 'Identifi es the distinguished name of the entrys manager.' SYNTAX 1.3.6.1.4.1.1466.115  .121.1.12 USAGE userApplications )
 * 1) extended LDIF
 * 1) LDAPv3
 * 2) base with scope baseObject
 * 3) filter: objectclass=*
 * 4) requesting: attributetypes
 * 1) schema

Exemplo 2
# # dn: cn=schema objectclasses: ( 0.9.2342.19200300.100.4.13 NAME ( 'domain' ) DESC 'Object cl  ass used to define entries that represent DNS domains in the directory. The d  omainComponent attribute should be used for naming entries of this object cla  ss.' STRUCTURAL SUP ( top ) MUST ( dc ) MAY ( userPassword $ searchGuide $ se  eAlso $ businessCategory $ x121address $ registeredAddress $ destinationIndic ator $ preferredDeliveryMethod $ telexNumber $ teletexTerminalIdentifier $ te lephoneNumber $ internationaliSDNNumber $ facsimileTelephoneNumber $ street $ postOfficeBox $ postalAddress $ postalCode $ physicalDeliveryOfficeName $ st  $ l $ description $ o $ associatedName ) )
 * 1) extended LDIF
 * 1) LDAPv3
 * 2) base with scope baseObject
 * 3) filter: objectclass=*
 * 4) requesting: objectclasses
 * 1) schema

Ver também

 * Pega os Grupos de um Usuário no LDAP
 * Pesquisa LDAP com o ldapsearch
 * LDAP: Listando Atributos com o ldapsearch


 * Mais Artigos sobre Tecnologias
 * Mais Artigos sobre Microsoft Windows