diff options
author | Nathan Kinder <nkinder@redhat.com> | 2007-08-30 15:56:36 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2007-08-30 15:56:36 +0000 |
commit | 40ea59e4c2e81ce665d8c09f0104be1378de901d (patch) | |
tree | 77a67bb3801da2a53ad2149449124fd2c210e8a6 /ldap/servers/slapd/attr.c | |
parent | 912b102e56a44bafe00fa75ed81fc6fb7d3b6903 (diff) | |
download | ds-40ea59e4c2e81ce665d8c09f0104be1378de901d.tar.gz ds-40ea59e4c2e81ce665d8c09f0104be1378de901d.tar.xz ds-40ea59e4c2e81ce665d8c09f0104be1378de901d.zip |
Resolves: 212671
Summary: Handle syncing multi-valued street attribute to AD.
Diffstat (limited to 'ldap/servers/slapd/attr.c')
-rw-r--r-- | ldap/servers/slapd/attr.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/ldap/servers/slapd/attr.c b/ldap/servers/slapd/attr.c index 7cd5a2f5..e6b32d42 100644 --- a/ldap/servers/slapd/attr.c +++ b/ldap/servers/slapd/attr.c @@ -699,7 +699,20 @@ slapi_attr_add_value(Slapi_Attr *a, const Slapi_Value *v) return 0; } -/* Make the valuset in SLapi_Attr be *vs--not a copy */ +int +slapi_attr_set_type(Slapi_Attr *a, const char *type) +{ + int rc = 0; + + if((NULL == a) || (NULL == type)) { + rc = -1; + } else { + a->a_type = slapi_ch_strdup(type); + } + return rc; +} + +/* Make the valuset in Slapi_Attr be *vs--not a copy */ int slapi_attr_set_valueset(Slapi_Attr *a, const Slapi_ValueSet *vs) { |