LDAPUserData#

class gafaelfawr.models.ldap.LDAPUserData(name=None, email=None, uid=None, gid=None)#

Bases: object

Data for a user from LDAP.

This represents the subset of TokenUserInfo that comes from LDAP. Which elements in particular are filled out varies based on configuration.

Parameters:

Attributes Summary

email

Preferred email address.

gid

Primary GID.

name

Preferred full name.

uid

UID number.

Methods Summary

is_empty()

Whether any information was found in LDAP for this user.

Attributes Documentation

email: str | None = None#

Preferred email address.

gid: int | None = None#

Primary GID.

name: str | None = None#

Preferred full name.

uid: int | None = None#

UID number.

Methods Documentation

is_empty()#

Whether any information was found in LDAP for this user.

Return type:

bool