def DumpRoot():
 path = ('LDAP://%srootDSE' % server)
 rootdse = ADsGetObject(path)
 for item in rootdse.Get('SupportedLDAPVersion'):
  print ('%s supports ldap version %s' % (path, item))
 attributes = ['CurrentTime', 'defaultNamingContext']
 for attr in attributes:
  val = rootdse.Get(attr)
  print (' %s=%s' % (attr, val))

def DumpRoot ( ) : path = ( 'LDAP://%srootDSE' % server ) rootdse = ADsGetObject ( path ) for item in rootdse . Get ( 'SupportedLDAPVersion' ) : print ( '%s supports ldap version %s' % ( path , item ) ) attributes = [ 'CurrentTime' , 'defaultNamingContext' ] for attr in attributes : val = rootdse . Get ( attr ) print ( ' %s=%s' % ( attr , val ) )
dumps the root dse .