diff options
author | Günther Deschner <gd@samba.org> | 2011-10-17 18:03:31 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-11-16 12:26:26 +0100 |
commit | 8312ee136771befd2c04d877e3ab340e1b1366a7 (patch) | |
tree | 21efdef7c839b69aaea714931309e0d6eb5fb8a1 /source3/include | |
parent | 28f8ccbe8b36766cf15a3d97cffb4ea66b411958 (diff) | |
download | samba-8312ee136771befd2c04d877e3ab340e1b1366a7.tar.gz samba-8312ee136771befd2c04d877e3ab340e1b1366a7.tar.bz2 samba-8312ee136771befd2c04d877e3ab340e1b1366a7.zip |
s3-passdb: split out passdb/pdb_ldap_schema.c
Guenther
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/smbldap.h | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h index f336ffea46..baa4267530 100644 --- a/source3/include/smbldap.h +++ b/source3/include/smbldap.h @@ -27,106 +27,6 @@ struct smbldap_state; #ifdef HAVE_LDAP -/* specify schema versions between 2.2. and 3.0 */ - -#define SCHEMAVER_SAMBAACCOUNT 1 -#define SCHEMAVER_SAMBASAMACCOUNT 2 - -/* objectclass names */ - -#define LDAP_OBJ_SAMBASAMACCOUNT "sambaSamAccount" -#define LDAP_OBJ_SAMBAACCOUNT "sambaAccount" -#define LDAP_OBJ_GROUPMAP "sambaGroupMapping" -#define LDAP_OBJ_DOMINFO "sambaDomain" -#define LDAP_OBJ_IDPOOL "sambaUnixIdPool" -#define LDAP_OBJ_IDMAP_ENTRY "sambaIdmapEntry" -#define LDAP_OBJ_SID_ENTRY "sambaSidEntry" -#define LDAP_OBJ_TRUST_PASSWORD "sambaTrustPassword" -#define LDAP_OBJ_TRUSTDOM_PASSWORD "sambaTrustedDomainPassword" -#define LDAP_OBJ_TRUSTED_DOMAIN "sambaTrustedDomain" - -#define LDAP_OBJ_ACCOUNT "account" -#define LDAP_OBJ_POSIXACCOUNT "posixAccount" -#define LDAP_OBJ_POSIXGROUP "posixGroup" -#define LDAP_OBJ_OU "organizationalUnit" - -/* some generic attributes that get reused a lot */ - -#define LDAP_ATTRIBUTE_SID "sambaSID" -#define LDAP_ATTRIBUTE_UIDNUMBER "uidNumber" -#define LDAP_ATTRIBUTE_GIDNUMBER "gidNumber" -#define LDAP_ATTRIBUTE_SID_LIST "sambaSIDList" - -/* attribute map table indexes */ - -#define LDAP_ATTR_LIST_END 0 -#define LDAP_ATTR_UID 1 -#define LDAP_ATTR_UIDNUMBER 2 -#define LDAP_ATTR_GIDNUMBER 3 -#define LDAP_ATTR_UNIX_HOME 4 -#define LDAP_ATTR_PWD_LAST_SET 5 -#define LDAP_ATTR_PWD_CAN_CHANGE 6 -#define LDAP_ATTR_PWD_MUST_CHANGE 7 -#define LDAP_ATTR_LOGON_TIME 8 -#define LDAP_ATTR_LOGOFF_TIME 9 -#define LDAP_ATTR_KICKOFF_TIME 10 -#define LDAP_ATTR_CN 11 -#define LDAP_ATTR_DISPLAY_NAME 12 -#define LDAP_ATTR_HOME_PATH 13 -#define LDAP_ATTR_LOGON_SCRIPT 14 -#define LDAP_ATTR_PROFILE_PATH 15 -#define LDAP_ATTR_DESC 16 -#define LDAP_ATTR_USER_WKS 17 -#define LDAP_ATTR_USER_SID 18 -#define LDAP_ATTR_USER_RID 18 -#define LDAP_ATTR_PRIMARY_GROUP_SID 19 -#define LDAP_ATTR_PRIMARY_GROUP_RID 20 -#define LDAP_ATTR_LMPW 21 -#define LDAP_ATTR_NTPW 22 -#define LDAP_ATTR_DOMAIN 23 -#define LDAP_ATTR_OBJCLASS 24 -#define LDAP_ATTR_ACB_INFO 25 -#define LDAP_ATTR_NEXT_USERRID 26 -#define LDAP_ATTR_NEXT_GROUPRID 27 -#define LDAP_ATTR_DOM_SID 28 -#define LDAP_ATTR_HOME_DRIVE 29 -#define LDAP_ATTR_GROUP_SID 30 -#define LDAP_ATTR_GROUP_TYPE 31 -#define LDAP_ATTR_SID 32 -#define LDAP_ATTR_ALGORITHMIC_RID_BASE 33 -#define LDAP_ATTR_NEXT_RID 34 -#define LDAP_ATTR_BAD_PASSWORD_COUNT 35 -#define LDAP_ATTR_LOGON_COUNT 36 -#define LDAP_ATTR_MUNGED_DIAL 37 -#define LDAP_ATTR_BAD_PASSWORD_TIME 38 -#define LDAP_ATTR_PWD_HISTORY 39 -#define LDAP_ATTR_SID_LIST 40 -#define LDAP_ATTR_MOD_TIMESTAMP 41 -#define LDAP_ATTR_LOGON_HOURS 42 -#define LDAP_ATTR_TRUST_PASSWD_FLAGS 43 -#define LDAP_ATTR_SN 44 - - -typedef struct _attrib_map_entry { - int attrib; - const char *name; -} ATTRIB_MAP_ENTRY; - - -/* structures */ - -extern ATTRIB_MAP_ENTRY attrib_map_v22[]; -extern ATTRIB_MAP_ENTRY attrib_map_to_delete_v22[]; -extern ATTRIB_MAP_ENTRY attrib_map_v30[]; -extern ATTRIB_MAP_ENTRY attrib_map_to_delete_v30[]; -extern ATTRIB_MAP_ENTRY dominfo_attr_list[]; -extern ATTRIB_MAP_ENTRY groupmap_attr_list[]; -extern ATTRIB_MAP_ENTRY groupmap_attr_list_to_delete[]; -extern ATTRIB_MAP_ENTRY idpool_attr_list[]; -extern ATTRIB_MAP_ENTRY sidmap_attr_list[]; -extern ATTRIB_MAP_ENTRY trustpw_attr_list[]; - - /* Function declarations -- not included in proto.h so we don't have to worry about LDAP structure types */ @@ -135,8 +35,6 @@ NTSTATUS smbldap_init(TALLOC_CTX *mem_ctx, const char *location, struct smbldap_state **smbldap_state); -const char* get_attr_key2string( ATTRIB_MAP_ENTRY table[], int key ); -const char** get_attr_list( TALLOC_CTX *mem_ctx, ATTRIB_MAP_ENTRY table[] ); void smbldap_set_mod (LDAPMod *** modlist, int modop, const char *attribute, const char *value); void smbldap_set_mod_blob(LDAPMod *** modlist, int modop, const char *attribute, const DATA_BLOB *newblob); void smbldap_make_mod(LDAP *ldap_struct, LDAPMessage *existing, |