My linux world » SSH

SSH


You want to connect to your server by ssh, using ldap authentification.

Contents

Configure winbind

Installation

# install packages :
yum -y install authconfig krb5-workstation pam_krb5 samba-common fprintd-pam
 
# start on boot:
chkconfig winbind on
 
# configure kerberos (this will update the file /etc/krb5.conf):
authconfig --enablekrb5 --krb5kdc=MYLDAPSERVERIP --krb5realm=LDAP.EXAMPLE.COM --update
 
# start service:
service winbind start
 
# add ldap user:
user add myldapuser

Test

kinit myldapuser

How to create automatically home directory for new users?

# install package:
yum -y install oddjob-mkhomedir
 
# start on boot:
chkconfig oddjobd on
 
# configure kerberos:
authconfig --enablemkhomedir --winbindtemplateshell=/sbin/nologin --update
 
# start service:
service oddjobd start

Troubleshooting

The service oddjobd does not want to start?

/usr/sbin/oddjobd:
Error connecting to D-Bus!

Copyright © 2024 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.