SIngle sign on (SSO) first try
SIngle sign on (SSO) first try
So, can we use the distributed autentication to sign on from the client machine to the kerberos server using the principal "joe" and the ticket we got? Let's try:
ssh joe@kerberos.redflo.de Password: Password: Password: Permission denied (publickey,keyboard-interactive).
What's wrong? Let's have a look at the /var/log/messages on the kerberos server:
Jul 21 16:31:27 kerberos sshd[7421]: error: PAM: User not known to the underlying authentication module for illegal user joe from clientmachine.redflo.de Jul 21 16:31:27 kerberos sshd[7421]: Failed keyboard-interactive/pam for invalid user joe from x.x.x.x port 35808 ssh2
What does this mean? Simple: The unix system does not know anything about joe. Later we want to use ldap to make unix know all about joe, but for now we use the classic unix methods. On the kerberos server, edit /etc/passwd:
joe:x:1001:100:Joe Cool:/home/joe:/bin/bash
/etc/shadow:
joe:*K*:12984:0:99999:7:-1::
make a home directory:
mkdir /home/joe
chown joe:100 /home/joe
(or add a user another way). The *K* in /etc/shadow denotes that we want to get the password from the kerberos server.
Let's try again to ssh from the client machine. What happens? You don't get in? Why? Always check the logfiles!
Jul 21 16:41:54 kerberos sshd[7440]: error: PAM: Authentication failure for joe from clientmachine.redflo.de
So we still cannot authenticate. Do we need to tweak pam?
Created by system. Last Modification: Saturday 23 of July, 2005 12:49:27 UTC by admin.
Category: UNIX
-
wiki page:
- How to use Microsoft Active Directory with postfix
- inserting the first object in your ldap directory
- Installing the mailsystem packages
- Integrating LDAP in your unix system
- Introduction
- Kerberizing kadmin
- Kerberizing sshd
- Kerberos setup
- LDAP
- LDAP schema files
- logging
- Motivation
- nss_ldap security
- OpenLDAP config files
- Other documentation
- performing a first ldap query
- PerfParse
- populating the directory
- Postfix and cyrus imapd and kerberos and LDAP
- Setting up a kerberos client machine
- Setting up your Kerberos servers
- SIngle sign on (SSO) first try
- SSO and Central Administration with Kerberos and LDAP
- Start the kerberos servers
- The configuration files
- The name service switch
- Tweak pam
- Understanding Kerberos
- Understanding Kerberos pt. 2
- Webserver Stress Test Tools
- What is LDAP?
- What the heck is pam?
- What we need
- What we want
- Audience
- Authenticating
- Bash script with timeout function
- Check Processes
- Check your installation
- Choosing a Realm
- configure your mail client
- Configuring and understanding pam
- configuring cyrus imapd
- configuring postfix
- Connect to kadmind and have a look into the database
- Creating the kerberos database
- Edit the Kerberos Admin Server ACL config
- Edit the kerberos client config file
- Edit the kerberos server config file
- Excursus to principals
- exploring schemas
- Fight Image Spam
- Fight Spam best practice
- adding a group
- Adding principals and authenticating
- Another principal
- nss with Solaris 10
- SerialConsole






