Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P614
SSSD config
Active
Public
Actions
Authored by
antranigv_freebsd.am
on Oct 22 2023, 3:08 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F69783758: SSSD config
Oct 22 2023, 3:08 PM
2023-10-22 15:08:46 (UTC+0)
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 paste.
Oct 22 2023, 3:08 PM
2023-10-22 15:08:46 (UTC+0)
antranigv_freebsd.am
created this object in space
S1 Global
.
antranigv_freebsd.am
created this object with edit policy "No One".
Log In to Comment