Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F69783758
SSSD config
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
antranigv_freebsd.am
Oct 22 2023, 3:08 PM
2023-10-22 15:08:46 (UTC+0)
Size
731 B
Referenced Files
None
Subscribers
None
SSSD config
View Options
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!"
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6567808
Default Alt Text
SSSD config (731 B)
Attached To
Mode
P614 SSSD config
Attached
Detach File
Event Timeline
Log In to Comment