My linux world » SSH


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


Configure winbind


# 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


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


The service oddjobd does not want to start?

Error connecting to D-Bus!

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

Fork me on GitHub