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.schema.syntaxes.OID Class Reference
Inheritance diagram for web2ldap.app.schema.syntaxes.OID:
[legend]
Collaboration diagram for web2ldap.app.schema.syntaxes.OID:
[legend]

Public Member Functions

str value_button (self, command, row, mode, link_text=None)
 
bytes sanitize (self, bytes attr_value)
 
str display (self, vidx, links)
 
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
 
 pattern = re.compile(r'^([a-zA-Z]+[a-zA-Z0-9;-]*|[0-2]?\.([0-9]+\.)*[0-9]+)$')
 
 no_val_button_attrs
 
- 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
 

Detailed Description

Plugin class for LDAP syntax 'OID'
(see https://datatracker.ietf.org/doc/html/rfc4517#section-3.3.26)

Definition at line 1237 of file syntaxes.py.

Member Function Documentation

◆ display()

◆ sanitize()

bytes web2ldap.app.schema.syntaxes.OID.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 1257 of file syntaxes.py.

◆ value_button()

str web2ldap.app.schema.syntaxes.OID.value_button (   self,
  command,
  row,
  mode,
  link_text = None 
)
return HTML markup of [+] or [-] submit buttons for adding/removing
attribute values

row
  row number in input table
mode
  '+' or '-'
link_text
  optionally override displayed link link_text

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

Definition at line 1252 of file syntaxes.py.

References web2ldap.app.plugins.edirectory.OctetStringGUID._at, web2ldap.app.schema.syntaxes.LDAPSyntax._at, and web2ldap.app.schema.syntaxes.OID.no_val_button_attrs.

Member Data Documentation

◆ no_val_button_attrs

web2ldap.app.schema.syntaxes.OID.no_val_button_attrs
static
Initial value:
= frozenset((
'objectclass',
'structuralobjectclass',
'2.5.4.0',
'2.5.21.9',
))

Definition at line 1245 of file syntaxes.py.

Referenced by web2ldap.app.schema.syntaxes.OID.value_button().

◆ pattern

web2ldap.app.schema.syntaxes.OID.pattern = re.compile(r'^([a-zA-Z]+[a-zA-Z0-9;-]*|[0-2]?\.([0-9]+\.)*[0-9]+)$')
static

Definition at line 1244 of file syntaxes.py.

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

◆ str

web2ldap.app.schema.syntaxes.OID.str
static

Definition at line 1242 of file syntaxes.py.


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