URL: https://github.com/SSSD/sssd/pull/89 Title: #89: nss: rewrite nss responder so it uses cache_req
lslebodn commented: """ One netgroupt test failed: Decrease the cache time out and add new entry for nisNetgroupTriple ``` echo "entry_cache_timeout = 60" >> /etc/sssd/sssd.conf // clear cache and restart sssd cat << EOF | ldapmodify -x -h $SERVERS -p 389 -D "cn=Directory Manager" -w Secret123 -a dn: cn=QAUsers,ou=Netgroup,dc=example,dc=com objectClass: nisNetgroup objectClass: top cn: QAUsers nisNetgroupTriple: (testhost1,ng9000,$HOSTNAME) description: ALL QA users in my org EOF // ensure that that netgroup with ng9000 exist getent -s sss netgroup QAUsers | grep ng9000" // ensure that that netgroup with ng9001 does not exist getent -s sss netgroup QAUsers | grep ng9001" && exit 1 //add netgroup with ng9001 cat << EOF | ldapmodify -x -h $SERVERS -p 389 -D "cn=Directory Manager" -w $PASSWORD dn: cn=QAUsers,ou=Netgroup,dc=example,dc=com changetype: modify add: nisNetgroupTriple nisNetgroupTriple: (testhost2,ng9001,$HOSTNAME) EOF python -c "from ctypes import CDLL; from ctypes.util import find_library; libc = CDLL(find_library('c')); x = libc.innetgr('QAUsers', None, 'ng9001', '$HOSTNAME'); assert x == 0" sleep 70 python -c "from ctypes import CDLL; from ctypes.util import find_library; libc = CDLL(find_library('c')); x = libc.innetgr('QAUsers', None, 'ng9001', '$HOSTNAME'); assert x == 1;" ``` """ See the full comment at https://github.com/SSSD/sssd/pull/89#issuecomment-263635715
_______________________________________________ sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org