web2ldap
1.7.7
About: web2ldap is a full-featured web-based LDAPv3 client.
![]() ![]() |
Public Member Functions | |
bytes | sanitize (self, bytes attr_value) |
str | form_value (self) |
web_forms.Field | input_field (self) |
str | display (self, vidx, links) |
![]() | |
def | __init__ (self, app, str dn, schema, str attrType, bytes attr_value, entry=None) |
bytes | sanitize (self, bytes attr_value) |
web_forms.Field | input_field (self) |
str | display (self, vidx, links) |
![]() | |
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 | |
int | min_value = 0 |
tuple | time_divisors |
string | sep = ',' |
![]() | |
str | |
int | |
min_value = None | |
max_value = None | |
![]() | |
str | |
![]() | |
str | |
string | html_tmpl = '{av}' |
![]() | |
str | |
int | |
bool | |
Additional Inherited Members | |
![]() | |
max_len | |
Definition at line 1752 of file syntaxes.py.
str web2ldap.app.schema.syntaxes.Timespan.display | ( | self, | |
vidx, | |||
links | |||
) |
Reimplemented from web2ldap.app.schema.syntaxes.DirectoryString.
Reimplemented in web2ldap.app.plugins.dds.EntryTTL, and web2ldap.app.plugins.ppolicy.PwdMaxAge.
Definition at line 1791 of file syntaxes.py.
References web2ldap.app.entry.DisplayEntry._app, web2ldap.app.read.VCardEntry._app, web2ldap.app.schema.syntaxes.LDAPSyntax._app, web2ldap.app.schema.viewer.DisplaySchemaElement._app, web2ldap.app.search.PrintableHTMLWriter._app, web2ldap.app.plugins.activedirectory.Interval.av_u, web2ldap.app.schema.syntaxes.LDAPSyntax.av_u(), web2ldap.app.schema.syntaxes.Timespan.sep, web2ldap.app.plugins.oath.OathSecretTime.time_divisors, web2ldap.app.plugins.ppolicy.PwdChangedTime.time_divisors, web2ldap.app.schema.syntaxes.Timespan.time_divisors, and web2ldap.utctime.ts2repr().
str web2ldap.app.schema.syntaxes.Timespan.form_value | ( | self | ) |
Transform LDAP string representations to HTML form input field values. Returns Unicode string to be encoded with the browser's accepted charset. This is the inverse of LDAPSyntax.sanitize().
Reimplemented from web2ldap.app.schema.syntaxes.LDAPSyntax.
Definition at line 1779 of file syntaxes.py.
References web2ldap.app.plugins.openldap.ReqMod._av, web2ldap.app.schema.syntaxes.LDAPSyntax._av, web2ldap.app.schema.syntaxes.Timespan.sep, web2ldap.app.plugins.oath.OathSecretTime.time_divisors, web2ldap.app.plugins.ppolicy.PwdChangedTime.time_divisors, web2ldap.app.schema.syntaxes.Timespan.time_divisors, and web2ldap.utctime.ts2repr().
Referenced by web2ldap.app.schema.syntaxes.DNSDomain.display(), web2ldap.app.plugins.activedirectory.LogonHours.input_field(), web2ldap.app.plugins.aedir.AEHomeDirectory.input_field(), web2ldap.app.plugins.aedir.AEUIDNumber.input_field(), web2ldap.app.plugins.aedir.AEUserUid.input_field(), web2ldap.app.plugins.aedir.AEMemberUid.input_field(), web2ldap.app.plugins.aedir.AEDerefAttribute.input_field(), web2ldap.app.plugins.aedir.AEUniqueIdentifier.input_field(), web2ldap.app.plugins.aedir.AERFC822MailMember.input_field(), web2ldap.app.plugins.aedir.AESudoHost.input_field(), web2ldap.app.schema.syntaxes.LDAPSyntax.input_field(), web2ldap.app.schema.syntaxes.Integer.input_field(), web2ldap.app.schema.syntaxes.OctetString.input_field(), web2ldap.app.schema.syntaxes.MultilineText.input_field(), web2ldap.app.schema.syntaxes.SelectList.input_field(), web2ldap.app.schema.syntaxes.BitArrayInteger.input_field(), and web2ldap.app.schema.syntaxes.ComposedAttribute.input_field().
web_forms.Field web2ldap.app.schema.syntaxes.Timespan.input_field | ( | self | ) |
Reimplemented from web2ldap.app.schema.syntaxes.Integer.
Definition at line 1788 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.LDAPSyntax.input_fields().
bytes web2ldap.app.schema.syntaxes.Timespan.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.Integer.
Definition at line 1766 of file syntaxes.py.
References web2ldap.utctime.repr2ts(), web2ldap.app.schema.syntaxes.Timespan.sep, web2ldap.app.plugins.oath.OathSecretTime.time_divisors, web2ldap.app.plugins.ppolicy.PwdChangedTime.time_divisors, and web2ldap.app.schema.syntaxes.Timespan.time_divisors.
|
static |
Definition at line 1755 of file syntaxes.py.
Referenced by web2ldap.app.plugins.ppolicy.PwdMaxAge._timespan_search_params(), web2ldap.app.plugins.ppolicy.PwdExpireWarning._timespan_search_params(), and web2ldap.app.plugins.dds.EntryTTL.display().
|
static |
Definition at line 1756 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.Integer._maxlen(), and web2ldap.app.schema.syntaxes.Integer._validate().
|
static |
Definition at line 1764 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.Timespan.display(), web2ldap.app.schema.syntaxes.Timespan.form_value(), and web2ldap.app.schema.syntaxes.Timespan.sanitize().
|
static |
Definition at line 1753 of file syntaxes.py.
|
static |
Definition at line 1757 of file syntaxes.py.
Referenced by web2ldap.app.plugins.oath.OathSecretTime.display(), web2ldap.app.plugins.ppolicy.PwdChangedTime.display(), web2ldap.app.schema.syntaxes.Timespan.display(), web2ldap.app.schema.syntaxes.Timespan.form_value(), and web2ldap.app.schema.syntaxes.Timespan.sanitize().