This module allows remote access to LDAP. It wraps standard Python module for LDAP and provides some convenience functions.
| Parameters: |
|
|---|
LDAP class wrapping ldap access.
| Parameters: |
|
|---|---|
| Return type: | list of dictionaries |
| Returns: | Search results |
Performs UID search and returns list of search results.
| Parameters: |
|
|---|
Performs search by any attribute.
| Parameters: | user (string) – Search string |
|---|---|
| Return type: | string |
| Returns: | Department name, N/A in case it was not found. |
Performs LDAP search and grabs department name from it. Additionally some fixups are applied to department names to avoid more names for single department.
Wrapper around suseapi.userinfo.UserInfo class to use Django settings and cache results in Django cache.