Ldap user
LdapUser
¶
Bases: DomainObject
Represents an entry mapping a ldap id to a CKAN user.
Source code in ckanext/ldap/model/ldap_user.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
by_ldap_id(ldap_id, autoflush=True)
classmethod
¶
Return the LdapUser object mapping the given ldap id.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ldap_id
|
ldap id, as returned by the LDAP server |
required | |
autoflush
|
(Default value = True) |
True
|
Returns:
| Type | Description |
|---|---|
|
LdapUser object or None |
Source code in ckanext/ldap/model/ldap_user.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
by_user_id(user_id, autoflush=True)
classmethod
¶
Return the LdapUser object mapping the given user id.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
user_id
|
CKAN user id (actual id, not name) |
required | |
autoflush
|
(Default value = True) |
True
|
Returns:
| Type | Description |
|---|---|
|
LdapUser object or None |
Source code in ckanext/ldap/model/ldap_user.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |