web2ldap
1.7.7
About: web2ldap is a full-featured web-based LDAPv3 client.
![]() ![]() |
Public Member Functions | |
str | form_value (self) |
bytes | sanitize (self, bytes attr_value) |
str | display (self, vidx, links) |
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 | |
pattern = re.compile(r'^([0-9]){12,14}((\.|,)[0-9]+)*(Z|(\+|-)[0-9]{4})$') | |
timeDefault = None | |
notBefore = None | |
notAfter = None | |
string | form_value_fmt = '%Y-%m-%dT%H:%M:%SZ' |
tuple | dtFormats |
tuple | acceptable_formats |
tuple | dt_display_format |
![]() | |
str | |
![]() | |
str | |
string | html_tmpl = '{av}' |
![]() | |
str | |
int | |
bool | |
Private Member Functions | |
bool | _validate (self, bytes attr_value) |
Plugin class for LDAP syntax 'Generalized Time' (see https://datatracker.ietf.org/doc/html/rfc4517#section-3.3.13)
Definition at line 722 of file syntaxes.py.
|
private |
check the syntax of attr_value Implementors can overload this method to apply arbitrary syntax checks.
Reimplemented from web2ldap.app.schema.syntaxes.IA5String.
Reimplemented in web2ldap.app.plugins.aedir.AENotAfter, and web2ldap.app.plugins.ppolicy.PwdAccountLockedTime.
Definition at line 768 of file syntaxes.py.
References web2ldap.app.schema.syntaxes.GeneralizedTime.notAfter, and web2ldap.app.schema.syntaxes.GeneralizedTime.notBefore.
Referenced by web2ldap.app.schema.syntaxes.Image.sanitize(), and web2ldap.app.schema.syntaxes.LDAPSyntax.validate().
str web2ldap.app.schema.syntaxes.GeneralizedTime.display | ( | self, | |
vidx, | |||
links | |||
) |
Reimplemented from web2ldap.app.schema.syntaxes.DirectoryString.
Reimplemented in web2ldap.app.plugins.oath.OathSecretTime, web2ldap.app.plugins.ppolicy.PwdAccountLockedTime, and web2ldap.app.plugins.ppolicy.PwdChangedTime.
Definition at line 850 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.cmp(), web2ldap.app.schema.syntaxes.GeneralizedTime.dt_display_format, and web2ldap.utctime.ts2repr().
str web2ldap.app.schema.syntaxes.GeneralizedTime.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 778 of file syntaxes.py.
References web2ldap.app.plugins.openldap.ReqMod._av, web2ldap.app.schema.syntaxes.LDAPSyntax._av, web2ldap.app.plugins.activedirectory.Interval.av_u, web2ldap.app.schema.syntaxes.LDAPSyntax.av_u(), web2ldap.app.schema.syntaxes.GeneralizedTime.form_value_fmt, and web2ldap.app.schema.syntaxes.GeneralizedTime.str.
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().
bytes web2ldap.app.schema.syntaxes.GeneralizedTime.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 789 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.schema.syntaxes.GeneralizedTime.acceptable_formats, web2ldap.app.schema.syntaxes.Date.acceptable_formats, web2ldap.app.schema.syntaxes.GeneralizedTime.dtFormats, web2ldap.app.schema.syntaxes.GeneralizedTime.timeDefault, web2ldap.app.schema.syntaxes.NotBefore.timeDefault, and web2ldap.app.schema.syntaxes.NotAfter.timeDefault.
|
static |
Definition at line 757 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.GeneralizedTime.sanitize(), and web2ldap.app.schema.syntaxes.Date.sanitize().
|
static |
Definition at line 762 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.GeneralizedTime.display().
|
static |
Definition at line 736 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.GeneralizedTime.sanitize().
|
static |
Definition at line 735 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.GeneralizedTime.form_value().
|
static |
Definition at line 729 of file syntaxes.py.
Referenced by web2ldap.app.plugins.oath.OathSecretTime.display(), and web2ldap.app.plugins.ppolicy.PwdChangedTime.display().
|
static |
Definition at line 734 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.GeneralizedTime._validate().
|
static |
Definition at line 733 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.GeneralizedTime._validate().
|
static |
Definition at line 731 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.LDAPSyntax.validate().
|
static |
Definition at line 727 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.GeneralizedTime.form_value().
|
static |
Definition at line 732 of file syntaxes.py.
Referenced by web2ldap.app.schema.syntaxes.GeneralizedTime.sanitize().