Find the answer to your Linux question:
Results 1 to 3 of 3
All: I followed the Redhat document entitled: Integrating Red Hat Enterprise Linux 6 with Active Directory. (can't post the URL b/c this is my first post) (link added by mod: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2013
    Posts
    2

    Question Redhat LDAP / Active Directory Integration Problem. . .


    All:

    I followed the Redhat document entitled: Integrating Red Hat Enterprise Linux 6 with Active Directory. (can't post the URL b/c this is my first post)

    (link added by mod: http://www.redhat.com/rhecm/rest-rhe...h:resourceFile)

    I implemented "Configuration 4", which is 6.4 in the document. It's Kerberos with LDAP.

    Everything worked great, until I got to the point of verifying the configuration. I tried SSH into a box that was configured, using my AD account.

    I was able to get it working to the point where I see the MOTD, but then immediately, I am disconnected. It happens literally in the same second.

    I grabbed the output from /var/log/secure, and have posted it below. My config files are all correct per the document, and I have created a RHEL account with a blank password on the test box.

    Code:
    Jul 26 13:38:10 puresandbox3 sshd[27385]: Server listening on 0.0.0.0 port 22.
    Jul 26 13:38:10 puresandbox3 sshd[27385]: Server listening on :: port 22.
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) illegal module type: ~
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) no control flag supplied
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) no module name supplied
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) illegal module type: ~
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) no control flag supplied
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) no module name supplied
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) illegal module type: ~
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) no control flag supplied
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) no module name supplied
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) illegal module type: ~
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) no control flag supplied
    Jul 26 13:38:16 puresandbox3 sshd[27388]: PAM (sshd) no module name supplied
    Jul 26 13:38:19 puresandbox3 sshd[27388]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=test01.pilot.org  user=steve.leone
    Jul 26 13:38:19 puresandbox3 sshd[27388]: pam_krb5[27388]: error reading keytab 'FILE:/etc/krb5.keytab'
    Jul 26 13:38:19 puresandbox3 sshd[27388]: pam_krb5[27388]: TGT verified
    Jul 26 13:38:19 puresandbox3 sshd[27388]: pam_krb5[27388]: authentication succeeds for 'steve.leone' (steve.leone(at)PILOT.ORG)
    Jul 26 13:38:19 puresandbox3 sshd[27388]: Accepted password for steve.leone from 10.106.78.37 port 49383 ssh2
    Jul 26 13:38:20 puresandbox3 sshd[27388]: pam_unix(sshd:session): session opened for user steve.leone by (uid=0)
    Jul 26 13:38:20 puresandbox3 sshd[27388]: error: PAM: pam_open_session(): Permission denied
    Jul 26 13:38:20 puresandbox3 sshd[27413]: Received disconnect from 10.106.78.37: 11: disconnected by user
    Any ideas? I have a valid Kerberos ticket.

    Thx!
    Last edited by atreyu; 07-27-2013 at 03:45 AM. Reason: added link on behalf of OP

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,509
    Was the system you were attempting to use ssh to access a Linux, or a Windows system? If Linux, then you sshd configuration on that system needs to be updated and the sshd service restarted.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jul 2013
    Posts
    2
    It was ssh.

    Here's the config:

    Code:
    #       $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm Exp $
    
    # This is the sshd server system-wide configuration file.  See
    # sshd_config(5) for more information.
    
    # This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
    
    # The strategy used for options in the default sshd_config shipped with
    # OpenSSH is to specify options with their default value where
    # possible, but leave them commented.  Uncommented options change a
    # default value.
    
    #Port 22
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::
    
    # Disable legacy (protocol version 1) support in the server for new
    # installations. In future the default will change to require explicit
    # activation of protocol 1
    Protocol 2
    
    # HostKey for protocol version 1
    #HostKey /etc/ssh/ssh_host_key
    # HostKeys for protocol version 2
    #HostKey /etc/ssh/ssh_host_rsa_key
    #HostKey /etc/ssh/ssh_host_dsa_key
    
    # Lifetime and size of ephemeral version 1 server key
    #KeyRegenerationInterval 1h
    #ServerKeyBits 1024
    
    # Logging
    # obsoletes QuietMode and FascistLogging
    #SyslogFacility AUTH
    SyslogFacility AUTHPRIV
    #LogLevel INFO
    
    # Authentication:
    
    #LoginGraceTime 2m
    #PermitRootLogin yes
    #StrictModes yes
    #MaxAuthTries 6
    #MaxSessions 10
    AllowUsers brandon.riley from test01.pilot.org steve.leone from test01.tscpilot.org  steve.leone
    
    #RSAAuthentication yes
    #PubkeyAuthentication yes
    #AuthorizedKeysFile     .ssh/authorized_keys
    #AuthorizedKeysCommand none
    #AuthorizedKeysCommandRunAs nobody
    
    # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
    #RhostsRSAAuthentication no
    # similar for protocol version 2
    #HostbasedAuthentication no
    # Change to yes if you don't trust ~/.ssh/known_hosts for
    # RhostsRSAAuthentication and HostbasedAuthentication
    #IgnoreUserKnownHosts no
    # Don't read the user's ~/.rhosts and ~/.shosts files
    #IgnoreRhosts yes
    
    # To disable tunneled clear text passwords, change to no here!
    #PasswordAuthentication yes
    #PermitEmptyPasswords no
    PasswordAuthentication yes
    
    
    
    # Change to no to disable s/key passwords
    #ChallengeResponseAuthentication yes
    ChallengeResponseAuthentication no
    
    # Kerberos options
    #KerberosAuthentication no
    #KerberosOrLocalPasswd yes
    #KerberosTicketCleanup yes
    #KerberosGetAFSToken no
    #KerberosUseKuserok yes
    
    # GSSAPI options
    #GSSAPIAuthentication no
    GSSAPIAuthentication yes
    #GSSAPICleanupCredentials yes
    GSSAPICleanupCredentials yes
    #GSSAPIStrictAcceptorCheck yes
    #GSSAPIKeyExchange no
    
    # Set this to 'yes' to enable PAM authentication, account processing, 
    # and session processing. If this is enabled, PAM authentication will 
    # be allowed through the ChallengeResponseAuthentication and
    # PasswordAuthentication.  Depending on your PAM configuration,
    # PAM authentication via ChallengeResponseAuthentication may bypass
    # the setting of "PermitRootLogin without-password".
    # If you just want the PAM account and session checks to run without
    # PAM authentication, then enable this but set PasswordAuthentication
    # and ChallengeResponseAuthentication to 'no'.
    #UsePAM no
    UsePAM yes
    
    # Accept locale-related environment variables
    AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
    AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
    AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
    AcceptEnv XMODIFIERS
    
    #AllowAgentForwarding yes
    #AllowTcpForwarding yes
    #GatewayPorts no
    #X11Forwarding no
    X11Forwarding yes
    #X11DisplayOffset 10
    #X11UseLocalhost yes
    #PrintMotd yes
    #PrintLastLog yes
    #TCPKeepAlive yes
    #UseLogin no
    #UsePrivilegeSeparation yes
    #PermitUserEnvironment no
    #Compression delayed
    #ClientAliveInterval 0
    #ClientAliveCountMax 3
    #ShowPatchLevel no
    #UseDNS yes
    #PidFile /var/run/sshd.pid
    #MaxStartups 10
    #PermitTunnel no
    #ChrootDirectory none
    
    # no default banner path
    #Banner none
    
    # override default of no subsystems
    Subsystem       sftp    /usr/libexec/openssh/sftp-server
    
    # Example of overriding settings on a per-user basis
    #Match User anoncvs
    #       X11Forwarding no
    #       AllowTcpForwarding no
    #       ForceCommand cvs server
    Not sure what's wrong with it.

    Thank you very much for your help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •