Hi,
i have a problem with my FreeBSD 9.2 Configuration and LDAP.
I want to login with an account from my LDAP directory, but the System gets an error after password authentication.
here the line from /var/log/auth.log
and here my configuration files:
does someone know what to do?
thanks.
i have a problem with my FreeBSD 9.2 Configuration and LDAP.
I want to login with an account from my LDAP directory, but the System gets an error after password authentication.
here the line from /var/log/auth.log
Code:
Jan 21 20:18:29 login: pam_acct_mgmt(): error in service module
and here my configuration files:
Code:
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: release/9.2.0/etc/nsswitch.conf 224765 2011-08-10 20:52:02Z dougb $
#
group: cache files ldap [NOTFOUND=return]
passwd: cache files ldap [NOTFOUND=return]
group_compat: nis
hosts: files dns
networks: files
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files
Code:
#/etc/pam.d/system
# $FreeBSD: release/9.2.0/etc/pam.d/system 197769 2009-10-05 09:28:54Z des $
#
# System-wide defaults
#
# auth
auth sufficient pam_opie.so no_warn no_fake_prompts
auth requisite pam_opieaccess.so no_warn allow_local
auth sufficient /usr/local/lib/pam_ldap.so no_warn try_first_pass
auth required pam_unix.so no_warn try_first_pass nullok
# account
account required /usr/local/lib/pam_ldap.so ignore_unknown_user ignore_authinfo_unavail
account required pam_login_access.so
account required pam_unix.so
# session
session required /usr/local/lib/pam_mkhomedir.so
session required pam_lastlog.so no_fail
# password
password required pam_unix.so no_warn try_first_pass
Code:
#/etc/pam.d/login
# $FreeBSD: release/9.2.0/etc/pam.d/login 170510 2007-06-10 18:57:20Z yar $
#
# PAM configuration for the "login" service
#
# auth
auth sufficient pam_self.so no_warn
auth include system
# account
account requisite pam_securetty.so
account required pam_nologin.so
account include system
# session
session include system
# password
password include system
Code:
#/etc/pam.d/passwd
# $FreeBSD: release/9.2.0/etc/pam.d/passwd 113967 2003-04-24 12:22:42Z des $
#
# PAM configuration for the "passwd" service
#
# passwd(1) does not use the auth, account or session services.
# password
password required /usr/local/lib/pam_ldap.so
password required pam_unix.so no_warn try_first_pass nullok
Code:
root@:/usr/local/etc # ls -l nss_ldap.conf
lrwxr-xr-x 1 root wheel 9 Jan 20 16:01 nss_ldap.conf -> ldap.conf
Code:
#/usr/local/etc/ldap.conf
BASE ou=inform,ou=f4,ou=studium,dc=fh-h,dc=de
URI ldap://<correct ip adress>
ldap_version 3
binddn cn=i-proxyuser,ou=funktionen,ou=inform,ou=f4,ou=studium,dc=fh-h,dc=de
bindpw secret
pam_login_attribute uid
scope sub
Code:
# /usr/local/etc/openldap/ldap.conf
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
#BASE dc=example,dc=com
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666
BASE ou=inform,ou=f4,ou=studium,dc=fh-h,dc=de
URI ldap://<correct ip adress>
binddn cn=i-proxyuser,ou=funktionen,ou=inform,ou=f4,ou=studium,dc=fh-h,dc=de
bindpw secret
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
does someone know what to do?
thanks.