|
|
aec187 |
diff -r dfd1d988ce4b authinfo.py
|
|
|
aec187 |
--- a/authinfo.py Tue Feb 11 11:49:42 2014 +0100
|
|
|
aec187 |
+++ b/authinfo.py Tue Feb 11 13:01:44 2014 +0100
|
|
|
aec187 |
@@ -1218,7 +1218,7 @@
|
|
|
aec187 |
FileBackup("libuser.conf", SYSCONFDIR+"/libuser.conf"),
|
|
|
aec187 |
FileBackup("pwquality.conf", SYSCONFDIR+"/security/pwquality.conf"),
|
|
|
aec187 |
FileBackup("login.defs", SYSCONFDIR+"/login.defs"),
|
|
|
aec187 |
- FileBackup("sssd.conf", SYSCONFDIR+"/sssd/sssd.conf"),
|
|
|
aec187 |
+ FileBackup("sssd.conf", PATH_SSSD_CONFIG),
|
|
|
aec187 |
FileBackup("shadow", SYSCONFDIR+"/shadow"),
|
|
|
aec187 |
FileBackup("passwd", SYSCONFDIR+"/passwd"),
|
|
|
aec187 |
FileBackup("gshadow", SYSCONFDIR+"/gshadow"),
|
|
|
aec187 |
@@ -4346,8 +4346,12 @@
|
|
|
aec187 |
"winbind", nostart)
|
|
|
aec187 |
|
|
|
aec187 |
def toggleSSSDService(self, nostart):
|
|
|
aec187 |
+
|
|
|
aec187 |
+ explicitenable = ((self.enableSSSD and self.enableSSSDAuth) or
|
|
|
aec187 |
+ (self.enableSSSD and os.path.exists(PATH_SSSD_CONFIG)) or
|
|
|
aec187 |
+ (self.enableSSSDAuth and os.path.exists(PATH_SSSD_CONFIG)))
|
|
|
aec187 |
toggleSplatbindService(self.implicitSSSD or self.implicitSSSDAuth or
|
|
|
aec187 |
- self.enableIPAv2 or self.enableSSSD or self.enableSSSDAuth,
|
|
|
aec187 |
+ self.enableIPAv2 or explicitenable,
|
|
|
aec187 |
PATH_SSSD,
|
|
|
aec187 |
"sssd", nostart or not (self.implicitSSSD or self.implicitSSSDAuth
|
|
|
aec187 |
or self.enableIPAv2))
|