Lightweight Directory Access Protocol (LDAP)


Using dig...
	russ@taliesin:~> dig SRV _ldap._tcp.Site2._sites.gc._msdcs.a.vas

Active Directory schema...

Find Active Directory schema particulars at http://msdn.microsoft.com/en-us/library/ms675085.aspx.


RFC 2254 string filters...

This is interesting from the perspective of vasjoin.sh which must soon be enhanced to support browsing of UPM OUs. Filters are passed as argument to vastool search. These are examples and wouldn’t be so useful to vastool search itself, but they show syntax and are useful in there present state for other reasons. They come from a document by Dan Peterson.

      getpwnam() (&(objectClass=posixAccount)(uid=%s))
      getpwuid() (&(objectClass=posixAccount)(uidNumber=%d))
      getpwent() (objectClass=posixAccount)
      getspnam() (&(objectClass=shadowAccount)(uid=%s))
      getspent() (objectClass=shadowAccount)
      getgrnam() (&(objectClass=posixGroup)(cn=%s))
      getgrgid() (&(objectClass=posixGroup)(gid=%d))
      getgrent() (objectClass=posixGroup)
      getservbyname() (&(objectClass=ipService)(cn=%s)(ipServiceProtocol=%s))
      getservbyport() (&(objectClass=ipService)(ipServicePort=%d)(ipServiceProtocol=%s))
      getservent() (objectClass=ipService)
      getrpcbyname() (&(objectClass=oncRpc)(cn=%s))
      getrpcbynumber() (&(objectClass=oncRpc)(oncRpcNumber=%d))
      getrpcent() (objectClass=oncRpc)
      getprotobyname() (&(objectClass=ipProtocol)(cn=%s))
      getprotobynumber() (&(objectClass=ipProtocol)(ipProtocolNumber=%d))
      getprotoent() (objectClass=ipProtocol)
      gethostbyname() (&(objectClass=ipHost)(cn=%s))
      gethostbyaddr() (&(objectClass=ipHost)(ipHostNumber=%s))
      gethostent() (objectClass=ipHost)
      getnetbyname() (&(objectClass=ipNetwork)(cn=%s))
      getnetbyaddr() (&(objectClass=ipNetwork)(ipNetworkNumber=%s))
      getnetent() (objectClass=ipNetwork)
      setnetgrent() (&(objectClass=nisNetgroup)(cn=%s))
      auto_home (&(objectClass=nisObject)(nisMapName=auto_home))
      auto_master (&(objectClass=nisObject)(nisMapName=auto_master))
      getpwnam() (&(objectClass=vintela-unixUserPersonality)(uid=%s))
      getpwuid() (&(objectClass=vintela-unixUserPersonality)(uidNumber=%d))
      getpwent() (objectClass=vintela-unixUserPersonality)
      getgrnam() (&(objectClass=vintela-unixGroupPersonality)(cn=%s))
      getgrgid() (&(objectClass=vintela-unixGroupPersonality)(gid=%d))
      getgrent() (objectClass=vintela-unixGroupPersonality)
      gethostbyname() (&(objectClass=device)(ipHostNumber=*)(cn=%s))
      gethostbyaddr() (&(objectClass=device)(ipHostNumber=%s))
      gethostent() (&(objectClass=device)(ipHostNumber=%s))