System version
NethServer release 7.3.1611 (Final)
Kernel release
3.10.0-514.10.2.el7.x86_64 Module: Account provider: Samba Active Directory
hello!
I just installed Nethserver in my environment! Yay! I;m quite excited to use it, but I wanted to see where maybe I have done configurations incorrectly.
I have a machine running NS, and then another (connected wirelessly) with Fedora 25, mostly a base installation, with a single local user defined in /etc/passwd.
My purpose for installing NS is to have installed the Samba Active Directory Module, so I may have centralized authentication for all my machines and VMs.
I have configured the NS to use a static IP address (x.x.x.10) and create a bridge adapter defined as (x.x.x.11).
I have tried on the Fedora 25 machine the following process to create Domain Logins:
but when I try and login using the AD User account:
su - home.sdrose.com\drose
also tried: su - drose@home.sdrose.com
Both the above ask for a password, and when I enter it, I receive the following error message:
Creating home directory for testuser.
su: warning: cannot change directory to /var/lib/nethserver/home/testuser: No such file or directory
-bash-4.3$
Here is the error after adding the override_homedir = /home/%f
org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.oddjob_mkhomedir was not provided by any .service files
su: warning: cannot change directory to /var/lib/nethserver/home/testuser: No such file or directory
-bash-4.3$ exit
Hello David
First, thank you for replying so quickly on my posting, and thank you for offering suggestions. I’d like to apologize for not knowing to restart sssd. I haven’t yet really ever used it, but I should have realized that it is a service, and as such, needed to be restarted. Also, I didn’t know about invalidating the cache …
However, even with those suggestions, I have the same error messaging …
[root@hp-note01 ~]# man sss_cache
[root@hp-note01 ~]# sss_cache -E
[root@hp-note01 ~]# systemctl restart sssd
[root@hp-note01 ~]# exit
logout
[drose@hp-note01 ~]$ su - testuser@home.sdrose.com
Password:
org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.oddjob_mkhomedir was not provided by any .service files
su: warning: cannot change directory to /home/testuser@home.sdrose.com: No such file or directory
-bash-4.3$
And, I have tried with alternating which command is first, the cache invalidation and restarting the service.
May I ask … are you using either a RedHat or Fedora system and this auto-creation of home directories is working for you? Looking around the internet, I see oddjob-mkhomedir to be a problem since sometime in 2014 …
I appreciate you sharing your experience, as well as anyone else who may post suggestions …