| Red Hat This forum is for the discussion of Red Hat Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
07-19-2012, 04:30 PM
|
#1
|
|
LQ Newbie
Registered: Jul 2012
Posts: 3
Rep: 
|
Kerberos and Active Directory Integration
Hello,
We have a Windows Server which handles all of the user accounts/information and we have several Windows and Linux boxes deployed. The Linux machines all run Scientific Linux 6 (Essentially CentOS 6, which is a redhat like distribution). They use Kerberos to authenticate with the Active Directory server.
When logging in on the Linux machines, when a password is about to expire, it shows "Your password will expire in XX days". Does anyone know the command line approach to find out how many days the password is valid for or expiration date? Similar to using net user in Windows command prompt. I've been searching all over the internet and cannot seem to figure this one out.
Thank you,
Jonathan
|
|
|
|
07-19-2012, 04:39 PM
|
#2
|
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,380
|
You will use the same net user syntax to the windows AD machine. The password policy is maintained on the AD server and as such it is queried from there by kerberos.
|
|
|
|
07-19-2012, 04:53 PM
|
#3
|
|
LQ Newbie
Registered: Jul 2012
Posts: 3
Original Poster
Rep: 
|
Thanks,
Do you know what command I would use to sort of "tunnel" the command to the AD server then?
|
|
|
|
07-19-2012, 05:05 PM
|
#4
|
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,380
|
net user username
|
|
|
|
07-19-2012, 11:16 PM
|
#5
|
|
LQ Newbie
Registered: Jul 2012
Posts: 3
Original Poster
Rep: 
|
I tried that originally, but it complains about the syntax being "net ads user info username" which asks for password and then output:
[***@***:~]# net ads user info ****
[2012/07/19 23:17:13.249505, 0] utils/net_ads.c:285(ads_startup_int)
ads_connect: No logon servers
[2012/07/19 23:17:16.496133, 0] utils/net_ads.c:285(ads_startup_int)
ads_connect: No logon servers
Not sure why it is doing this...
Edit:
Ok with: net ads user info **** --server=Domain Controller now returns below...
[2012/07/19 23:24:57.040867, 0] libads/kerberos.c:333(ads_kinit_password)
kerberos_kinit_password root@<Domain controller here> failed: Clients credentials have been revoked
I'm getting closer!
EDIT 2:
After running "kinit <username>" and running the command again, i get
wbcLookupSid: WBC_ERR_WINBIND_NOT_AVAILABLE
Any clues?
Last edited by jonofmac; 07-20-2012 at 08:04 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:33 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|