Windows Share authentication from Active Directory Linux login

Posted by Kenny on Server Fault See other posts from Server Fault or by Kenny
Published on 2010-03-11T14:20:37Z Indexed on 2010/05/10 19:04 UTC
Read the original article Hit count: 419

Hi,

I'm using Active Directory to log into RHEL. To do this, I followed the steps outlined here:

http://www.markwilson.co.uk/blog/2007/05/using-active-directory-to-authenticate-users-on-a-linux-computer.htm

I'd like to be able to read data from Windows Servers shared folders without being prompted for a password.

On Windows I log into an AD domain, and when I access windows file shares on a server on the LAN (also part of the AD domain) my I can just access them with no authentication step.

I've used SMBclient on Linux to access these shares, but it asks for my password.

I would like to be able to script access to the data on the shares, but I can't if there's a password prompt in the way. Well, I could, but it's not how I want to do it.

Now, since I'm logged in using my active directory username & password, can't I just access the shares without jumping that extra hoop?

I know I can mount the share using something like:

//192.168.0.5/share /mnt/windows cifs auto,username=steve,password=secret,rw 0 0

but access will depend who is logged in... each user logging in should have their own unique AD access privelages.

Thanks for reading!

© Server Fault or respective owner

Related posts about winbind

Related posts about active-directory