SSSD use default domain to unify winbind with getent
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -35,7 +35,7 @@ if [ ! -f /etc/samba/krb5.keytab ]; then
|
||||
mv /etc/krb5.keytab /etc/samba/
|
||||
|
||||
#mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
|
||||
echo 'root = administrator' > /etc/samba/smbusers
|
||||
echo '!root = DOMA\Administrator DOMA\administrator Administrator administrator' > /etc/samba/smbusers
|
||||
fi
|
||||
|
||||
if [ ! -L /etc/krb5.keytab ]; then
|
||||
@@ -48,6 +48,7 @@ echo -e "[sssd] \n\
|
||||
domains = $DOMAIN \n\
|
||||
config_file_version = 2 \n\
|
||||
services = nss, pam \n\
|
||||
default_domain_suffix = $DOMAIN \n\
|
||||
\n\
|
||||
[domain/$DOMAIN] \n\
|
||||
default_shell = /bin/bash \n\
|
||||
|
||||
Reference in New Issue
Block a user