You are not logged in.
Hi
I have setup a simple LDAP server, tls encrypted with a self-signed certficate. On my desktop, I have installed sssd and configured it for ldap authorisation and authentication.
When I connect to the server via ldapsearch -ZZ, I am able to connect, suggesting the tls is working correctly. getent passwd and getent groups include the LDAP users and groups. However when I try to su to an LDAP user, I get the error message
su: Authentication failureMy sssd.conf is below
[sssd]
config_file_version = 2
services = nss,pam
domains = LDAP
debug_level = 8
[nss]
#filter_users = root,ldap,named
#filter_groups = root
debug_level = 8
[pam]
debug_level = 8
[domain/LDAP]
cache_credentials = true
id_provider = ldap
auth_provider = ldap
ldap_schema = rfc2307
ldap_group_member = memberuid
ldap_uri = ldap://ldap.example.com
ldap_search_base = dc=example,dc=com
ldap_user_search_base = ou=users,dc=example,dc=com
ldap_group_search_base = ou=groups,dc=example,dc=com
ldap_user_object_class = inetOrgPerson
chpass_provider = ldap
ldap_chpass_uri = ldap://ldap.example.com
entry_cache_timeout = 600
ldap_network_timeout = 3
ldap_default_bind_dn = cn=nssproxy,ou=users,dc=example,dc=com
ldap_default_authtok = password
ldap_default_authtok_type = password
enumerate = true
ldap_tls_cacert = /etc/openldap/ssl/rootca.crt
ldap_tls_cacertdir = /etc/openldap/ssl
ldap_id_use_start_tls = true
use_fully_qualified_names = false
debug_level = 8
ldap_access_filter = memberOf=cn=users,ou=groups,dc=example,dc=com
access_provider = ldapFrom the journalctl
Oct 27 00:42:41 localadmin su[14358]: pam_unix(su:auth): authentication failure; logname= uid=1000 euid=0 tty=pts/9 ruser=localadmin rhost= user=ldapuser
Oct 27 00:42:44 localadmin su[14358]: FAILED SU (to ldapuser) admin on pts/9From sssd_nss.log
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [get_client_cred] (0x0080): The following failure is expected to happen in case SELinux is disabled:
SELINUX_getpeercon failed [95][Operation not supported].
Please, consider enabling SELinux in your system.
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [accept_fd_handler] (0x0400): Client connected!
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sss_cmd_get_version] (0x0200): Received client version [1].
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sss_cmd_get_version] (0x0200): Offered version [1].
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [nss_cmd_getbynam] (0x0400): Running command [17][SSS_NSS_GETPWNAM] with input [ldapuser].
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sss_parse_name_for_domains] (0x0200): name 'ldapuser' matched without domain, user is ldapuser
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [nss_cmd_getbynam] (0x0100): Requesting info for [ldapuser] from [<ALL>]
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sss_ncache_check_str] (0x2000): Checking negative cache for [NCE/USER/LDAP/ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [nss_cmd_getpwnam_search] (0x0100): Requesting info for [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [get_dp_name_and_id] (0x0400): Not a LOCAL view, continuing with provided values.
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sss_dp_issue_request] (0x0400): Issuing request for [0x41e5c0:1:ldapuser@ldap@LDAP]
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sss_dp_get_account_msg] (0x0400): Creating request for [LDAP][0x1][BE_REQ_USER][1][name=ldapuser@ldap:-]
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sbus_add_timeout] (0x2000): 0x12c1cb0
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sss_dp_internal_get_send] (0x0400): Entering request [0x41e5c0:1:ldapuser@ldap@LDAP]
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sbus_remove_timeout] (0x2000): 0x12c1cb0
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sss_dp_get_reply] (0x1000): Got reply from Data Provider - DP error code: 0 errno: 0 error message: Success
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sss_ncache_check_str] (0x2000): Checking negative cache for [NCE/USER/LDAP/ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [nss_cmd_getpwnam_search] (0x0100): Requesting info for [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [nss_cmd_getpwnam_search] (0x0400): Returning info for user [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[nss]] [sss_dp_req_destructor] (0x0400): Deleting request: [0x41e5c0:1:ldapuser@ldap@LDAP]
(Thu Oct 27 00:42:47 2016) [sssd[nss]] [client_recv] (0x0200): Client disconnected!
(Thu Oct 27 00:42:47 2016) [sssd[nss]] [client_close_fn] (0x2000): Terminated client [0x12ba800][23]The sssd_LDAP.log
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sbus_message_handler] (0x2000): Received SBUS method org.freedesktop.sssd.dataprovider.getAccountInfo on path /org/freedesktop/sssd/dataprovider
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sbus_get_sender_id_send] (0x2000): Not a sysbus message, quit
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [dp_get_account_info_handler] (0x0200): Got request for [0x1][BE_REQ_USER][1][name=ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [dp_attach_req] (0x0400): DP Request [Account #29]: New request. Flags [0x0001].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [dp_attach_req] (0x0400): Number of active DP request: 1
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_search_user_next_base] (0x0400): Searching for users with base [ou=users,dc=example,dc=com]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_print_server] (0x2000): Searching 192.168.0.14:389
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x0400): calling ldap_search_ext with [(&(uid=ldapuser)(objectclass=inetOrgPerson)(uid=*)(&(uidNumber=*)(!(uidNumber=0))))][ou=users,dc=example,dc=com].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [objectClass]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [uid]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [userPassword]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [uidNumber]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [gidNumber]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [gecos]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [homeDirectory]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [loginShell]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [krbPrincipalName]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [cn]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [modifyTimestamp]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [modifyTimestamp]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [shadowLastChange]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [shadowMin]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [shadowMax]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [shadowWarning]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [shadowInactive]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [shadowExpire]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [shadowFlag]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [krbLastPwdChange]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [krbPasswordExpiration]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [pwdAttribute]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [authorizedService]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [accountExpires]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [userAccountControl]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [nsAccountLock]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [host]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [loginDisabled]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [loginExpirationTime]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [loginAllowedTimeMap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [sshPublicKey]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x1000): Requesting attrs: [mail]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_ext_step] (0x2000): ldap_search_ext called, msgid = 15
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_op_add] (0x2000): New operation 15 timeout 6
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_process_result] (0x2000): Trace: sh[0x1d25740], connected[1], ops[0x1d23610], ldap[0x1bd6bf0]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_parse_entry] (0x1000): OriginalDN: [cn=ldapuser,ou=users,dc=example,dc=com].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_parse_range] (0x2000): No sub-attributes for [cn]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_parse_range] (0x2000): No sub-attributes for [uid]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_parse_range] (0x2000): No sub-attributes for [uidNumber]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_parse_range] (0x2000): No sub-attributes for [gidNumber]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_parse_range] (0x2000): No sub-attributes for [homeDirectory]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_parse_range] (0x2000): No sub-attributes for [loginShell]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_parse_range] (0x2000): No sub-attributes for [userPassword]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_parse_range] (0x2000): No sub-attributes for [objectClass]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_parse_range] (0x2000): No sub-attributes for [modifyTimestamp]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_process_result] (0x2000): Trace: sh[0x1d25740], connected[1], ops[0x1d23610], ldap[0x1bd6bf0]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_generic_op_finished] (0x0400): Search result: Success(0), no errmsg set
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_op_destructor] (0x2000): Operation 15 finished
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_search_user_process] (0x0400): Search for users, returned 1 results.
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_search_user_process] (0x2000): Retrieved total 1 users
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_save_user] (0x0400): Save user
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_get_sid_str] (0x1000): No [objectSID] attribute. [0][Success]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_get_primary_name] (0x0400): Processing object ldapuser
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_save_user] (0x0400): Processing user ldapuser@ldap
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_save_user] (0x2000): Adding originalDN [cn=ldapuser,ou=users,dc=example,dc=com] to attributes of [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_save_user] (0x0400): Original memberOf is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): Adding original mod-Timestamp [20161026210657Z] to attributes of [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_save_user] (0x0400): User principal is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): shadowLastChange is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): shadowMin is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): shadowMax is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): shadowWarning is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): shadowInactive is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): shadowExpire is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): shadowFlag is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): krbLastPwdChange is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): krbPasswordExpiration is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): pwdAttribute is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): authorizedService is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): adAccountExpires is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): adUserAccountControl is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): nsAccountLock is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): authorizedHost is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): ndsLoginDisabled is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): ndsLoginExpirationTime is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): ndsLoginAllowedTimeMap is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): sshPublicKey is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): authType is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): userCertificate is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_attrs_add_ldap_attr] (0x2000): mail is not available for [ldapuser@ldap].
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_save_user] (0x0400): Storing info for user ldapuser@ldap
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [userPrincipalName] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [shadowLastChange] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [shadowMin] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [shadowMax] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [shadowWarning] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [shadowInactive] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [shadowExpire] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [shadowFlag] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [krbLastPwdChange] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [krbPasswordExpiration] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [pwdAttribute] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [authorizedService] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [adAccountExpires] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [adUserAccountControl] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [nsAccountLock] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [authorizedHost] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [ndsLoginDisabled] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [ndsLoginExpirationTime] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [ndsLoginAllowedTimeMap] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [sshPublicKey] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sysdb_remove_attrs] (0x2000): Removing attribute [mail] from [ldapuser@ldap]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [dp_req_done] (0x0400): DP Request [Account #29]: Request handler finished [0]: Success
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [_dp_req_recv] (0x0400): DP Request [Account #29]: Receiving request data.
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [dp_req_reply_list_success] (0x0400): DP Request [Account #29]: Finished. Success.
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [dp_req_reply_std] (0x1000): DP Request [Account #29]: Returning [Success]: 0,0,Success
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [dp_table_value_destructor] (0x0400): Removing [0:1:0x0001:1:1::LDAP:name=ldapuser@ldap] from reply table
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [dp_req_destructor] (0x0400): DP Request [Account #29]: Request removed.
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [dp_req_destructor] (0x0400): Number of active DP request: 0
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_process_result] (0x2000): Trace: sh[0x1d25740], connected[1], ops[(nil)], ldap[0x1bd6bf0]
(Thu Oct 27 00:42:37 2016) [sssd[be[LDAP]]] [sdap_process_result] (0x2000): Trace: end of ldap_result listThe sssd_pam.log had no entry for this time period
I have tried to troubleshoot this issue myself but I have reached a point where I am not sure how to further drill down to the issue. Any help would be appreciated.
Thank you in anticpation,
Matthew
Last edited by Redmattski (2016-10-27 20:20:56)
Offline
Have you made the necessary changes to the PAM configuration files in /etc/pam.d?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Hi Loafer - thanks for the suggestion.
I had made an update to system-auth file in the PAM module.
File: /etc/pam.d/system-auth
#%PAM-1.0
auth sufficient pam_sss.so use_first_pass
auth required pam_unix.so try_first_pass nullok auth optional pam_permit.so
auth required pam_env.so
account [default=bad success=ok user_unknown=ignore authinfo_unavail=ignore] pam_sss.so
account required pam_unix.so
account optional pam_permit.so
account required pam_time.so
password sufficient pam_sss.so use_authtok
password required pam_unix.so try_first_pass nullok sha512 shadow
password optional pam_permit.so
session required pam_limits.so
session required pam_unix.so
session optional pam_sss.so
session optional pam_permit.soOffline
You may need to also edit "su" and other relevant files in /etc/pam.d/.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Thanks Loafer
Based on your suggestion I have added an entry into /etc/pam.d/su and su-l
#%PAM-1.0
auth sufficient pam_sss.so
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel"
#auth sufficient pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" grou$#auth required pam_wheel.so use_uid
auth required pam_unix.so use_first_pass
account required pam_unix.so
session required pam_unix.soI am now able to log in with the LDAP users
Thanks again
Last edited by Redmattski (2016-10-27 20:21:37)
Offline
My setup led to some other logon issues, I rectified this with the following changes
For /etc/pam.d/su and /etc/pam.d/su-l
I modified the line
auth required pam_unix.so use_first_passto
auth required pam_unix.so try_first_passFor /etc/pam.d/system-auth I modified
auth sufficient pam_sss.so use_first_pass
account [default=bad success=ok user_unknown=ignore authinfo_unavail=ignore] pam_sss.soto
auth sufficient pam_sss.so forward_pass
#account [default=bad success=ok user_unknown=ignore authinfo_unavail=ignore] pam_sss.soOffline