RE: Re: using windows ad accounts for centos 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hmmm... I get 

authconfig: Authentication module /lib/security/pam_krb5.so is missing. Authentication process will not work correctly.

When running this command...i tried to use yum whatprovides pam_krb5.so ...to no avail.

Any suggestions

-----Original Message-----
From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of Jay Leafey
Sent: Thursday, June 05, 2008 4:35 PM
To: CentOS mailing list
Subject: Re: [CentOS] using windows ad accounts for centos 5

Isaac Gonzalez wrote:
> Hi I read and used the article
> http://blog.wazollc.com/Lists/Posts/Post.aspx?ID=2 to authenticate my 
> ad accounts when logging on to cent 5…however, once I edit the 
> nsswitch.conf file, I can’t even log on as root or any local users 
> anymore. Kinit seems to initialize fine doing a kinit 
> username@xxxxxxxxxxxx <mailto:username@xxxxxxxxxxxx> , however doing a 
> getent passwd adusername ….it just sits there in the shell and does 
> nothing. I actually had to put all files back to where they were 
> before the change to even be able to login locally or use sudo.
> 
> I followed the steps line by line on this article but get stuck 
> everytime….anyone has an idea or a better documented way of achieving 
> what I am trying to do , please let me know.
> 
> Thanks,
> Isaac
> 

I'm using AD-via-Kerberos to authenticate users on several CentOS 5.1 systems.  Setting it up was as easy as a single command line:

authconfig \
         --usemd5 --useshadow --enablelocauthorize \
         --enablekrb5 \
         --krb5realm={AD Domain Name} \
         --enablekrb5kdcdns --enablekrb5realmdns --update

This makes the necessary changes to /etc/krb5.conf, /etc/ and /etc/nsswitch.conf.  I am NOT using this for user information, just password authentication, so I add user accounts for each authorized user.

You can also consider using the --disablesysnetauth flag, which disables authenticating "system" accounts via the network services and forces them to use local authorization.  This should prevent entries in the AD for "root" and other system accounts from being used.

Hope that helps!
--
Jay Leafey - Memphis, TN
jay.leafey@xxxxxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux