[SSSD] [PATCH] sss_override: add -find and -show

Pavel Březina pbrezina at redhat.com
Mon Oct 26 10:47:20 UTC 2015


On 10/26/2015 11:42 AM, Pavel Březina wrote:
> On 10/23/2015 06:02 PM, Pavel Březina wrote:
>> On 10/23/2015 05:41 PM, Pavel Reichl wrote:
>>> Thanks for rebase.
>>>
>>> I'm having little trouble testing now, it seems to me that user-show
>>> does not work, but it's Friday evening so the problem might be between
>>> between keyboard and chair :-)
>>>
>>> $ getent passwd john
>>> john:*:1234:10000:John Doe:/home/john:/bin/bash
>>>
>>> sudo sss_override user-add john --name jon
>>> SSSD needs to be restarted for the changes to take effect.
>>>
>>> $ sudo systemctl restart sssd
>>>
>>>
>>> $ sudo sss_override user-find
>>> john at ol:jon:::::
>>>
>>> sudo sss_override user-show john
>>>
>>>
>>> This is what override looks for:
>>> (&(objectClass=userOverride)(overrideAnchorUUID=:LOCAL:name\\5c3Djohn\\5c,cn\\5c3Dusers\\5c,cn\\5c3Dol\\5c,cn\\5c3Dsysd\220)
>>>
>>>
>>>
>>>
>>> This is content of cache:
>>> ldbsearch -H cache_ol.ldb '(objectClass=userOverride)'
>>> overrideAnchorUUID
>>> asq: Unable to register control with rootdse!
>>> # record 1
>>> dn:
>>> overrideAnchorUUID=:LOCAL:name\3Djohn\,cn\3Dusers\,cn\3Dol\,cn\3Dsysdb,cn=LOCAL,cn=views,cn=sysdb
>>>
>>>
>>>
>>> overrideAnchorUUID::
>>> OkxPQ0FMOm5hbWVcM0Rqb2huXCxjblwzRHVzZXJzXCxjblwzRG9sXCxjb
>>>   lwzRHN5c2Ri
>>
>> Works for me, we'll debug it on Monday on site.
>
> Ok, we found an access after free. 7th patch is attached. Fortunately,
> this is only hit with new patches and won't show up in released version.

I'm sending correct patchest. The previous contained one patch twice (as 
0001 and 0007).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sss_tools-always-show-common-and-help-options.patch
Type: text/x-patch
Size: 1695 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20151026/24536b48/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-sss_override-fix-exporting-multiple-domains.patch
Type: text/x-patch
Size: 1449 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20151026/24536b48/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-sss_override-add-user-find.patch
Type: text/x-patch
Size: 9237 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20151026/24536b48/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-sss_override-add-group-find.patch
Type: text/x-patch
Size: 7288 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20151026/24536b48/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-sss_override-add-user-show.patch
Type: text/x-patch
Size: 8272 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20151026/24536b48/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-sss_override-add-group-show.patch
Type: text/x-patch
Size: 6770 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20151026/24536b48/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-sss_override-do-not-free-ldb_dn-in-get_object_dn.patch
Type: text/x-patch
Size: 2402 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20151026/24536b48/attachment-0013.bin>


More information about the sssd-devel mailing list