Changes

Jump to navigation Jump to search
390 bytes added ,  22:10, 2 November 2014
Line 456: Line 456:  
  slapcat | grep -viP 'userPassword|sambaNTPassword|sambaLMPassword'
 
  slapcat | grep -viP 'userPassword|sambaNTPassword|sambaLMPassword'
   −
===Display 'dn' LDAP parameters===
+
===namingContexts===
you can display 'dn' LDAP parameters, either by the [[SME_Server:Documentation:Administration_Manual:Chapter13#Directory|server-manager]] or by the command line :
+
we can conduct a simple search of the naming context to see our directory information you can display 'dn' LDAP parameters, either by the [[SME_Server:Documentation:Administration_Manual:Chapter13#Directory|server-manager]] or by the command line :
 +
ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
 +
or you can do
 
  ldapsearch -x -h localhost -s base |grep 'dn'
 
  ldapsearch -x -h localhost -s base |grep 'dn'
   Line 465: Line 467:  
  # base <dc=stephane,dc=dtdns,dc=net> (default) with scope baseObject
 
  # base <dc=stephane,dc=dtdns,dc=net> (default) with scope baseObject
 
  # stephane.dtdns.net
 
  # stephane.dtdns.net
  '''dn: dc=stephane,dc=dtdns,dc=net'''
+
  '''dn: dc=mycompany,dc=local'''
 +
 
 +
===request a listing of all entries===
 +
The following LDAP search is requesting a listing of all entries starting from the base "dc=example,dc=com". This should return all of the entries
 +
 
 +
ldapsearch -x -b 'dc=mycompany,dc=local' '(objectclass=*)'
    
===Bind with a specific user on LDAP===
 
===Bind with a specific user on LDAP===

Navigation menu