mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s4-pydsdb: added dsdb_normalise_attributes() call
this call converts a set of attributes to DRSUAPI format and back to ldb format. This has the effect of normalising the attributes using the schema syntax rules
This commit is contained in:
@ -507,8 +507,13 @@ accountExpires: %u
|
||||
dsdb._dsdb_set_schema_from_ldb(self, ldb_conn)
|
||||
|
||||
def dsdb_DsReplicaAttribute(self, ldb, ldap_display_name, ldif_elements):
|
||||
'''convert a list of attribute values to a DRSUAPI DsReplicaAttribute'''
|
||||
return dsdb._dsdb_DsReplicaAttribute(ldb, ldap_display_name, ldif_elements)
|
||||
|
||||
def dsdb_normalise_attributes(self, ldb, ldap_display_name, ldif_elements):
|
||||
'''normalise a list of attribute values'''
|
||||
return dsdb._dsdb_normalise_attributes(ldb, ldap_display_name, ldif_elements)
|
||||
|
||||
def get_attribute_from_attid(self, attid):
|
||||
""" Get from an attid the associated attribute
|
||||
|
||||
|
Reference in New Issue
Block a user