def str2dn(dn, flags=0):
 if (not dn):
  return []
 return ldap.functions._ldap_function_call(None, _ldap.str2dn, dn, flags)

def str2dn ( dn , flags = 0 ) : if ( not dn ) : return [ ] return ldap . functions . _ldap_function_call ( None , _ldap . str2dn , dn , flags )
this function takes a dn as string as parameter and returns a decomposed dn .