[SSSD] [PATCH] Extend the LDAP attribute map with custom options

Jakub Hrozek jakub.hrozek at gmail.com
Mon Apr 21 21:15:47 UTC 2014


Hi,

the attached patches implement ticket #2073 -- the possibility to extend
the LDAP attribute map with custom attributes.

All attributes are saved to sysdb with the 'extra_' prefix so that the
custom attributes can be distinguished from the sysdb schema.

The first patch fixes a mostly unrelated bug, which I found when writing
unit tests.

[PATCH 1/3] LDAP: Fix one-by-one bug in sdap_copy_opts
The sdap_copy_opts function copied all the arguments except for the
sentinel.

[PATCH 2/3] LDAP: Make it possible to extend an attribute map
https://fedorahosted.org/sssd/ticket/2073

This commit adds a new option ldap_user_extra_attrs that is unset by
default. When set, the option contains a list of LDAP attributes the
LDAP provider would download and store in addition to the usual set.

The attributes are fetched in sysdb with the 'extra_' prefix to not
conflict with the sssd sdap maps.

[PATCH 3/3] Make LDAP extra attributes available to IPA and AD
https://fedorahosted.org/sssd/ticket/2073
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-LDAP-Fix-one-by-one-bug-in-sdap_copy_opts.patch
Type: text/x-patch
Size: 4836 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140421/2beef3d8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-LDAP-Make-it-possible-to-extend-an-attribute-map.patch
Type: text/x-patch
Size: 26711 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140421/2beef3d8/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Make-LDAP-extra-attributes-available-to-IPA-and-AD.patch
Type: text/x-patch
Size: 8273 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140421/2beef3d8/attachment-0002.bin>


More information about the sssd-devel mailing list