cri_models.ldap.user module

class cri_models.ldap.user.LDAPUser(dn, created_at, created_by, updated_at, updated_by, classes, first_name, last_name, full_name, email, passwords, login, gid, uid, home, ssh_keys, mail_aliases)[source]

Bases: cri_models.ldap.models.LDAPModel

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

class LDAPMeta[source]

Bases: object

object_classes_map = {'inetOrgPerson': (('last_name', 'full_name'), ('first_name', 'email', 'passwords')), 'ldapPublicKey': ((), ('ssh_keys', 'uid')), 'mailAccount': (('email',), ('mail_aliases',)), 'posixAccount': (('login', 'gid', 'uid', 'home', 'full_name'), 'passwords')}
exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

SASL_PREFIX = '{SASL}'
email

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

first_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

full_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_next_by_created_at(*, field=<ldapdb.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)
get_next_by_updated_at(*, field=<ldapdb.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)
get_previous_by_created_at(*, field=<ldapdb.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)
get_previous_by_updated_at(*, field=<ldapdb.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)
gid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

home

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

is_auth_with_sasl()[source]
last_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

login

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

mail_aliases

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

object_classes = ('inetOrgPerson', 'posixAccount')
objects = <django.db.models.manager.Manager object>
passwords

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

relative_base_dn = 'ou=users'
set_sasl(sasl_data)[source]
ssh_keys

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

uid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.