While registering client system or while uploading packages using rhnpush to the satellite server configured with "pam_ldap + TLS" auth, it fails with " Error Class Code: 2 "

Solution Verified - Updated -

Issue

  • When the RHN Satellite server has pam_auth enabled using pam_ldap + TLS is not possible to register a system.
[root@hostname1 ~]# rhnreg_ks --username=ldapuser --password=XXXX -v --force 
D: rpcServer: Calling XMLRPC registration.welcome_message
D: rpcServer: Calling XMLRPC registration.new_system
Error validating data at server:

Error Class Code: 2
Error Class Info: Invalid username and password combination.
Explanation: 
     An error has occurred while processing your request. If this problem
     persists please enter a bug report at bugzilla.redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.


==> /var/log/httpd/error_log <==
[Sat Jan 11 12:42:16 2014] [error] Spacewalk 11764 2014/01/11 12:42:16 -04:00: ('Password check failed (7): Authentication failure',)
[Sat Jan 11 12:42:16 2014] [error] Spacewalk 11764 2014/01/11 12:42:16 -04:00: ('User password check failed', 'ldapuser')

==> /var/log/messages <==
Jan 11 12:42:16 hostname2 httpd: pam_ldap: ldap_starttls_s: Connect error
  • If the satellite v 5.6 server is configured with pam_ldap + TLS authentication, then while uploading package to satellite server using rhnpush command, it fails with Error Class Code: 2.

Environment

  • Red Hat Enterprise Linux 5, 6
  • Red Hat Satellite 5.6
  • pam_ldap + TLS authentication

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.