diff options
author | Simo Sorce <idra@samba.org> | 2004-03-19 14:31:09 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2004-03-19 14:31:09 +0000 |
commit | c8549363f49ac9ea818bd782319e57154764992f (patch) | |
tree | d1bfa900298151662dd669288860624e0998d2fe /source3/lib | |
parent | 9915ded60a1c59528ab6485dc14ac34f19f6153f (diff) | |
download | samba-c8549363f49ac9ea818bd782319e57154764992f.tar.gz samba-c8549363f49ac9ea818bd782319e57154764992f.tar.bz2 samba-c8549363f49ac9ea818bd782319e57154764992f.zip |
add privileges support to ldapsam too
(This used to be commit d940a2f77377dd1560cea4c782823cf9cd97a3aa)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/privileges.c | 2 | ||||
-rw-r--r-- | source3/lib/smbldap.c | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c index cd888b6513..ce647f02cd 100644 --- a/source3/lib/privileges.c +++ b/source3/lib/privileges.c @@ -33,7 +33,7 @@ PRIVS privs[] = { {SE_ASSIGN_PRIMARY_TOKEN, "SeAssignPrimaryTokenPrivilege", "Assign Primary Token"}, {SE_LOCK_MEMORY, "SeLockMemoryPrivilege", "Lock Memory"}, {SE_INCREASE_QUOTA, "SeIncreaseQuotaPrivilege", "Increase Quota"}, - {SE_UNSOLICITED_INPUT, "eUnsolicitedInputPrivilege", "Unsolicited Input"}, + {SE_UNSOLICITED_INPUT, "SeUnsolicitedInputPrivilege", "Unsolicited Input"}, {SE_MACHINE_ACCOUNT, "SeMachineAccountPrivilege", "Can add Machine Accounts to the Domain"}, {SE_TCB, "SeTcbPrivilege", "TCB"}, {SE_SECURITY, "SeSecurityPrivilege", "Security Privilege"}, diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index 20c2163cde..c2dcd905ea 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -155,6 +155,16 @@ ATTRIB_MAP_ENTRY sidmap_attr_list[] = { { LDAP_ATTR_LIST_END, NULL } }; +/* privileges */ + +ATTRIB_MAP_ENTRY privilege_attr_list[] = { + { LDAP_ATTR_CN, "sambaPrivName" }, + { LDAP_ATTR_SID_LIST, LDAP_ATTRIBUTE_SID_LIST }, + { LDAP_ATTR_DESC, "description" }, + { LDAP_ATTR_OBJCLASS, "objectClass" }, + { LDAP_ATTR_LIST_END, NULL } +}; + /********************************************************************** perform a simple table lookup and return the attribute name **********************************************************************/ |