summaryrefslogtreecommitdiffstats
path: root/server/providers/ldap/sdap.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-10-29 18:16:59 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-11-03 10:16:38 -0500
commita79b644d178fcfbde0fe0b13a31fb13bbfc80004 (patch)
tree70ae8086c753ad9c1fa08234afed21727c5b1f8a /server/providers/ldap/sdap.h
parente308325dd002f92d893185f7f655be79afa28be2 (diff)
downloadsssd-a79b644d178fcfbde0fe0b13a31fb13bbfc80004.tar.gz
sssd-a79b644d178fcfbde0fe0b13a31fb13bbfc80004.tar.xz
sssd-a79b644d178fcfbde0fe0b13a31fb13bbfc80004.zip
Rename sdap_id_map to sdap_attr_map
Also start adding some infrastructure to use the USN counter when available. In particular add a place to add generic attrs mapping, ie attributes that are neither user nor group specific.
Diffstat (limited to 'server/providers/ldap/sdap.h')
-rw-r--r--server/providers/ldap/sdap.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/server/providers/ldap/sdap.h b/server/providers/ldap/sdap.h
index 152d46b9f..03dab3045 100644
--- a/server/providers/ldap/sdap.h
+++ b/server/providers/ldap/sdap.h
@@ -120,9 +120,16 @@ enum sdap_basic_opt {
SDAP_OPTS_BASIC /* opts counter */
};
+enum sdap_gen_attrs {
+ SDAP_AT_ENTRY_USN = 0,
+ SDAP_AT_LAST_USN,
+
+ SDAP_AT_GENERAL /* attrs counter */
+};
+
/* the objectclass must be the first attribute.
* Functions depend on this */
-enum sdap_user_opt {
+enum sdap_user_attrs {
SDAP_OC_USER = 0,
SDAP_AT_USER_NAME,
SDAP_AT_USER_PWD,
@@ -154,7 +161,7 @@ enum sdap_user_opt {
/* the objectclass must be the first attribute.
* Functions depend on this */
-enum sdap_group_opt {
+enum sdap_group_attrs {
SDAP_OC_GROUP = 0,
SDAP_AT_GROUP_NAME,
SDAP_AT_GROUP_PWD,
@@ -166,7 +173,7 @@ enum sdap_group_opt {
SDAP_OPTS_GROUP /* attrs counter */
};
-struct sdap_id_map {
+struct sdap_attr_map {
const char *opt_name;
const char *def_name;
const char *sys_name;
@@ -175,8 +182,9 @@ struct sdap_id_map {
struct sdap_options {
struct dp_option *basic;
- struct sdap_id_map *user_map;
- struct sdap_id_map *group_map;
+ struct sdap_attr_map *gen_map;
+ struct sdap_attr_map *user_map;
+ struct sdap_attr_map *group_map;
/* supported schema types */
enum schema_type {
@@ -193,9 +201,9 @@ struct sdap_options {
int sdap_get_map(TALLOC_CTX *memctx,
struct confdb_ctx *cdb,
const char *conf_path,
- struct sdap_id_map *def_map,
+ struct sdap_attr_map *def_map,
int num_entries,
- struct sdap_id_map **_map);
+ struct sdap_attr_map **_map);
int sdap_parse_user(TALLOC_CTX *memctx, struct sdap_options *opts,
struct sdap_handle *sh, struct sdap_msg *sm,