summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-01-06 16:04:32 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-01-09 17:48:54 +0100
commitf8f2ec0b4097bef628e66919acb746fe0ef6f6c2 (patch)
treeb5baf93e3a8c506ea8d4a6bbcd12096873df0191 /src/providers/ldap/sdap.h
parent6e1c8bf0caadcd6749b142d8b0322bf320a48e7d (diff)
downloadsssd-f8f2ec0b4097bef628e66919acb746fe0ef6f6c2.tar.gz
sssd-f8f2ec0b4097bef628e66919acb746fe0ef6f6c2.tar.xz
sssd-f8f2ec0b4097bef628e66919acb746fe0ef6f6c2.zip
AD: replace GID/UID, do not add another one
The code would call sysdb_attrs_add_uint32 which added another UID or GID to the ID=0 we already downloaded from LDAP (0 is the default value) when ID-mapping an entry. This led to funky behaviour later on when we wanted to process the ID.
Diffstat (limited to 'src/providers/ldap/sdap.h')
-rw-r--r--src/providers/ldap/sdap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap.h b/src/providers/ldap/sdap.h
index d844ad636..d14365799 100644
--- a/src/providers/ldap/sdap.h
+++ b/src/providers/ldap/sdap.h
@@ -488,6 +488,8 @@ int build_attrs_from_map(TALLOC_CTX *memctx,
int sdap_control_create(struct sdap_handle *sh, const char *oid, int iscritical,
struct berval *value, int dupval, LDAPControl **ctrlp);
+int sdap_replace_id(struct sysdb_attrs *entry, const char *attr, id_t val);
+
errno_t sdap_set_config_options_with_rootdse(struct sysdb_attrs *rootdse,
struct sdap_options *opts);
int sdap_get_server_opts_from_rootdse(TALLOC_CTX *memctx,