Changeset 4516


Ignore:
Timestamp:
May 2, 2017, 5:52:58 PM (2 years ago)
Author:
hectorgh
Message:

seems nslcd refuses to clear cache when changing ldap server ip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d-pamnss/trunk/fuentes/n4d-pamnss.install/usr/share/n4d/python-plugins/PamnssPlugin.py

    r4287 r4516  
    330330               
    331331                os.system("chmod 640 %s;chown root:nslcd %s"%(filename,filename))
    332                 os.system("diff %s %s 1>/dev/null || { cp %s %s; service nslcd restart; } "%(filename,PamnssPlugin.NSLCD_DESTINATION,filename,PamnssPlugin.NSLCD_DESTINATION))
     332                os.system("diff %s %s 1>/dev/null || { cp %s %s; systemctl restart nslcd; systemctl restart nslcd; } "%(filename,PamnssPlugin.NSLCD_DESTINATION,filename,PamnssPlugin.NSLCD_DESTINATION))
    333333                os.remove(filename)
    334334               
Note: See TracChangeset for help on using the changeset viewer.