web2ldap  1.7.7
About: web2ldap is a full-featured web-based LDAPv3 client.
  Fossies Dox: web2ldap-1.7.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

web2ldap.app.plugins.aedir.AEUserUid Class Reference
Inheritance diagram for web2ldap.app.plugins.aedir.AEUserUid:
[legend]
Collaboration diagram for web2ldap.app.plugins.aedir.AEUserUid:
[legend]

Public Member Functions

def __init__ (self, app, str dn, schema, str attrType, bytes attr_value, entry=None)
 
str form_value (self)
 
Field input_field (self)
 
bytes sanitize (self, bytes attr_value)
 
- Public Member Functions inherited from web2ldap.app.schema.syntaxes.DirectoryString
str display (self, vidx, links)
 
- Public Member Functions inherited from web2ldap.app.schema.syntaxes.LDAPSyntax
def __init__ (self, app, Optional[str] dn, SubSchema schema, Optional[str] attrType, Optional[bytes] attr_value, entry=None)
 
def dn (self)
 
def av_u (self)
 
bytes sanitize (self, bytes attr_value)
 
List[bytes] transmute (self, List[bytes] attr_values)
 
def validate (self, bytes attr_value)
 
str value_button (self, command, row, mode, link_text=None)
 
str form_value (self)
 
def input_fields (self)
 
web_forms.Field input_field (self)
 
str display (self, vidx, links)
 

Static Public Attributes

 str
 
int max_values = 1
 
 int
 
string UID_LETTERS = 'abcdefghijklmnopqrstuvwxyz'
 
 pattern = re.compile('^[{}]+$'.format(UID_LETTERS))
 
int genLen = 4
 
tuple sani_funcs
 
 structural_oc_oids
 
- Static Public Attributes inherited from web2ldap.app.plugins.aedir.AEUid
 str
 
tuple sani_funcs
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.IA5String
 str
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.DirectoryString
 str
 
string html_tmpl = '{av}'
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.LDAPSyntax
 str
 
 int
 
 bool
 

Private Member Functions

def _gen_uid (self)
 

Detailed Description

Class for auto-generating values for aeUser -> uid

Definition at line 312 of file aedir.py.

Constructor & Destructor Documentation

◆ __init__()

def web2ldap.app.plugins.aedir.AEUserUid.__init__ (   self,
  app,
str  dn,
  schema,
str  attrType,
bytes  attr_value,
  entry = None 
)

Reimplemented from web2ldap.app.schema.syntaxes.LDAPSyntax.

Definition at line 330 of file aedir.py.

Member Function Documentation

◆ _gen_uid()

◆ form_value()

◆ input_field()

Field web2ldap.app.plugins.aedir.AEUserUid.input_field (   self)

Reimplemented from web2ldap.app.schema.syntaxes.LDAPSyntax.

Definition at line 371 of file aedir.py.

References web2ldap.app.plugins.edirectory.OctetStringGUID._at, web2ldap.app.schema.syntaxes.LDAPSyntax._at, web2ldap.app.plugins.aedir.AEChildClasses.desc, web2ldap.app.plugins.subentries.AdministrativeRole.desc, web2ldap.app.plugins.activedirectory.ObjectSID.form_value(), web2ldap.app.plugins.activedirectory.LogonHours.form_value(), web2ldap.app.plugins.aedir.AEGIDNumber.form_value(), web2ldap.app.plugins.aedir.AEUserUid.form_value(), web2ldap.app.plugins.aedir.AEMemberUid.form_value(), web2ldap.app.plugins.aedir.AEDerefAttribute.form_value(), web2ldap.app.plugins.aedir.AEUserMailaddress.form_value(), web2ldap.app.plugins.aedir.AEZonePrefixCommonName.form_value(), web2ldap.app.plugins.dhcp.DHCPRange.form_value(), web2ldap.app.plugins.dns.AssociatedDomain.form_value(), web2ldap.app.plugins.opends.OpenDSdsCfgAlternatebindDn.form_value(), web2ldap.app.plugins.openldap.OlcRootDN.form_value(), web2ldap.app.plugins.posixautogen.AutogenNumberMixIn.form_value(), web2ldap.app.plugins.posixautogen.AutogenUIDNumber.form_value(), web2ldap.app.plugins.posixautogen.AutogenGIDNumber.form_value(), web2ldap.app.plugins.samba.SambaSID.form_value(), web2ldap.app.plugins.ucs.UniventionLDAPACLData.form_value(), web2ldap.app.schema.syntaxes.LDAPSyntax.form_value(), web2ldap.app.schema.syntaxes.GeneralizedTime.form_value(), web2ldap.app.schema.syntaxes.NullTerminatedDirectoryString.form_value(), web2ldap.app.schema.syntaxes.OctetString.form_value(), web2ldap.app.schema.syntaxes.MultilineText.form_value(), web2ldap.app.schema.syntaxes.Timespan.form_value(), web2ldap.app.schema.syntaxes.BitArrayInteger.form_value(), web2ldap.app.schema.syntaxes.DNSDomain.form_value(), web2ldap.app.schema.syntaxes.RFC822Address.form_value(), web2ldap.app.schema.syntaxes.ComposedAttribute.form_value(), web2ldap.app.schema.syntaxes.Integer.max_len, web2ldap.app.plugins.aedir.AEUserUid.max_values, web2ldap.app.plugins.aedir.AEPersonAttribute.max_values, web2ldap.app.plugins.aedir.AEUserMailaddress.max_values, web2ldap.app.plugins.aedir.AEPersonMailaddress.max_values, web2ldap.app.plugins.aedir.AEDeptAttribute.max_values, web2ldap.app.plugins.aedir.AEUniqueIdentifier.max_values, web2ldap.app.plugins.aedir.AEDepartmentNumber.max_values, web2ldap.app.plugins.aedir.AECommonName.max_values, web2ldap.app.plugins.aedir.AESudoHost.max_values, web2ldap.app.plugins.dns.CNAMERecord.max_values, web2ldap.app.plugins.inetorgperson.CNInetOrgPerson.max_values, and web2ldap.app.plugins.inetorgperson.DisplayNameInetOrgPerson.max_values.

Referenced by web2ldap.app.schema.syntaxes.LDAPSyntax.input_fields().

◆ sanitize()

bytes web2ldap.app.plugins.aedir.AEUserUid.sanitize (   self,
bytes  attr_value 
)
Transforms the HTML form input field values into LDAP string
representations and returns raw binary string.

This is the inverse of LDAPSyntax.form_value().

When using this method one MUST NOT assume that the whole entry is
present.

Reimplemented from web2ldap.app.schema.syntaxes.LDAPSyntax.

Definition at line 379 of file aedir.py.

Member Data Documentation

◆ genLen

int web2ldap.app.plugins.aedir.AEUserUid.genLen = 4
static

Definition at line 324 of file aedir.py.

Referenced by web2ldap.app.plugins.aedir.AEUserUid._gen_uid().

◆ int

web2ldap.app.plugins.aedir.AEUserUid.int
static

Definition at line 319 of file aedir.py.

◆ max_values

◆ pattern

web2ldap.app.plugins.aedir.AEUserUid.pattern = re.compile('^[{}]+$'.format(UID_LETTERS))
static

Definition at line 323 of file aedir.py.

Referenced by web2ldap.app.schema.syntaxes.LDAPSyntax.validate().

◆ sani_funcs

tuple web2ldap.app.plugins.aedir.AEUserUid.sani_funcs
static
Initial value:
= (
bytes.strip,
bytes.lower,
)

Definition at line 325 of file aedir.py.

Referenced by web2ldap.app.schema.syntaxes.LDAPSyntax.sanitize().

◆ str

web2ldap.app.plugins.aedir.AEUserUid.str
static

Definition at line 316 of file aedir.py.

Referenced by web2ldap.app.plugins.aedir.AEUserUid._gen_uid().

◆ structural_oc_oids

web2ldap.app.plugins.aedir.AEUserUid.structural_oc_oids
static

Definition at line 386 of file aedir.py.

◆ UID_LETTERS

string web2ldap.app.plugins.aedir.AEUserUid.UID_LETTERS = 'abcdefghijklmnopqrstuvwxyz'
static

Definition at line 322 of file aedir.py.

Referenced by web2ldap.app.plugins.aedir.AEUserUid._gen_uid().


The documentation for this class was generated from the following file: