-
Notifications
You must be signed in to change notification settings - Fork 4
/
ldapDefn.py
40 lines (34 loc) · 1.74 KB
/
ldapDefn.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#############################################################################
# Confidentiality Information #
# #
# This module is the confidential and proprietary information of #
# DBSentry Corp.; it is not to be copied, reproduced, or transmitted in any #
# form, by any means, in whole or in part, nor is it to be used for any #
# purpose other than that for which it is expressly provided without the #
# written permission of DBSentry Corp. #
# #
# Copyright (c) 2020-2021 DBSentry Corp. All Rights Reserved. #
# #
#############################################################################
LDAP_ATTR_DN = "dn"
LDAP_ATTR_CN = "cn"
LDAP_ATTR_UID = "uid"
LDAP_ATTR_SN = "sn"
LDAP_ATTR_GIVENNAME = "givenName"
LDAP_ATTR_DISPLAYNAME = "displayName"
LDAP_ATTR_PWDACCOUNTLOCKEDTIME = "pwdAccountLockedTime"
LDAP_ATTR_MEMBEROF = "memberOf"
LDAP_ATTR_MAIL = "mail"
LDAP_ATTR_SSHPUBLICKEY = "sshPublicKey"
LDAP_ATTR_USERPASSWORD = "userPassword"
LDAP_ATTR_PWDATTRIBUTE = "pwdAttribute"
LDAP_ATTR_OWNER = "owner"
LDAP_ATTR_DESCRIPTION = "description"
LDAP_ATTR_OPTION = "info"
LDAP_ATTR_PRINCIPAL = "pseudonym"
LDAP_ATTR_DESCRIPTION = "description"
LDAP_ATTR_OBJECTCLASS = "objectClass"
LDAP_ATTR_MEMBER = "member"
LDAP_OBJECTCLASS_USER = [b'inetOrgPerson',b'top',b'ldapPublicKey',b'pwdPolicy',b'extensibleObject']
LDAP_OBJECTCLASS_HOST = [b'device',b'top',b'ldapPublicKey',b'extensibleObject']
LDAP_OBJECTCLASS_GROUP = [b'groupOfNames',b'top']