diff options
| author | Martin Babinsky <mbabinsk@redhat.com> | 2016-11-03 17:43:33 +0100 |
|---|---|---|
| committer | Jan Cholasta <jcholast@redhat.com> | 2016-11-11 12:17:25 +0100 |
| commit | 81bf72dc350b9c7daab669aaa796e96aee6ecbb8 (patch) | |
| tree | 8d3606de6168be72ca405e47662de42cddc3c6df /ipaserver/install/dsinstance.py | |
| parent | 15f282cf2c4a5315aa3e259bd923718685d88245 (diff) | |
| download | freeipa-81bf72dc350b9c7daab669aaa796e96aee6ecbb8.tar.gz freeipa-81bf72dc350b9c7daab669aaa796e96aee6ecbb8.tar.xz freeipa-81bf72dc350b9c7daab669aaa796e96aee6ecbb8.zip | |
Make service user name a class member of Service
This will aid further refactoring of service installers, since the user will
be defined only once during parent class initialization.
https://fedorahosted.org/freeipa/ticket/6392
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipaserver/install/dsinstance.py')
| -rw-r--r-- | ipaserver/install/dsinstance.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index 1a38efa9d..d26f8380c 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -227,6 +227,7 @@ class DsInstance(service.Service): "dirsrv", service_desc="directory server", fstore=fstore, + service_user=DS_USER, realm_name=realm_name ) self.nickname = 'Server-Cert' @@ -1242,7 +1243,7 @@ class DsInstance(service.Service): replacevars=vardict) # Keytab must be owned by DS itself - pent = pwd.getpwnam(DS_USER) + pent = pwd.getpwnam(self.service_user) os.chown(paths.DS_KEYTAB, pent.pw_uid, pent.pw_gid) def __get_ds_cert(self): |
