image

uBuntu Server, Netatalk, LDAP

[<Back>] [<Edit>]

uBuntu server running Netatalk (AFP shares) and authenticating via LDAP Server

install ldap

# apt-get install libpam-ldap libnss-ldap nss-updatedb libnss-db ldap-utils

modify nsswitch.conf
passwd: files ldap
group: files ldap
sudoers: files
shadow: files ldap

modify /etc/pam.d/common-account
account [success=1 default=ignore] pam_unix.so
account sufficient pam_ldap.so
account required pam_unix.so

modify /etc/pam.d/common-auth
auth [success=1 default=ignore] pam_unix.so
auth sufficient pam_ldap.so use_first_pass
auth required pam_permit.so


modify /etc/pam.d/common-password
password sufficient pam_ldap.so
password required pam_unix.so nullok obscure min=4 max=8 md5


install netatalk


# apt-get install netatalk

edit afpd.conf
uams_clrtxt.so -> uams_pam.so
uams_dhx.so -> uams_dhx_pam.so
uams_dhx2.so -> uams_dhx2_pam.so

Setup ssh to allow both local and ldap user to gain ssh connection

edit /etc/ssh/sshd_config and add


UsePAM yes

restart sshd with

# /etc/init.d/sshd restart



By: Ted Simbajon





 
Instagram Stats
pinoy
my Kung Fu