Page MenuHomeFreeBSD
Paste P614

SSSD config
ActivePublic

Authored by antranigv_freebsd.am on Oct 22 2023, 3:08 PM.
Tags
None
Referenced Files
F69783758: SSSD config
Oct 22 2023, 3:08 PM
Subscribers
None
install -y sssd
echo "Enabling SSSD"
sysrc sssd_enable="YES"
echo "Configuring SSSD"
cat << EOF > /usr/local/etc/sssd/sssd.conf
[sssd]
config_file_version = 2
domains = awesome.com
services = pam, nss
[domain/awesome.com]
id_provider = ldap
auth_provider = ldap
ldap_uri = ldap://ldap.awesome.com
cache_credentials = True
ldap_search_base = dc=awesome,dc=com
EOF
chmod 0600 /usr/local/etc/sssd/sssd.conf
echo "Starting SSSD"
service sssd start
echo "Configuring NSSwitch"
sed -e 's/passwd: compat/passwd: files sss/' \
-e 's/passwd_compat: nis//' \
-e 's/group: compat/group: files sss/' \
-e 's/group_compat: nis//' \
-i .sss.bak /etc/nsswitch.conf
echo "Checking user 10000"
pw user show 10000
echo "Done!"

Event Timeline

antranigv_freebsd.am created this object in space S1 Global.
antranigv_freebsd.am created this object with edit policy "No One".