LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2005, 10:38 AM   #1
dcurrit
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Always map windows account to same uid.


I am setting up a cluster of 5 Linux (Redhat rel4) nodes which will all mount a common nfs drive. I would like to use the Windows ADS to authenticate users, but the windows userid to map to the same uid on all the nodes so the nfs mount will work properly. Does anyone know a good way to do this? There will only be a few users (20 or so) accessing the cluster, so I wouldn't mind manually creating the accounts. On one link I saw this:

"Prior to Samba 3.0.6, this value had to be set, but in Samba 3.0.6 and later, an
undefined idmap uid causes Winbind to try to map NT domain usernames to
locally defined accounts, which can be useful if you have existing Linux accounts
but want to rely on a domain controller for password authentication."

I haven't been able to get this to work. Does anyone have any ideas?

I have seen a couple of other suggestions:

1) use idmap backend = idmap_rid.... - unfortunately Redhat doesn't include this in their distribution.

2) use idmap backend with LDAP, but that looked like a lot of work.
 
Old 10-25-2005, 07:04 PM   #2
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
you could use winbind to authenicate against Active directory. that way you would have the same user names and passwords. If you've already done this or don't want to do this then don't worry, but if you want some information i'll give you some information, just tell me.

As for mapping the home drive of your windows machine i'm only starting to get into the bash scripts and i'm not near my linux box at the moment, but if you had a mount command in your login script ...

mount -t smbfs -o username=$user,password=$password //windows-server/$user /home/$user

then that would give them the same username/password/home drive as in your ADS enviroment.

now i'm really not sure about that script up above, i'll be near my linux box this afternoon and i can figure it out, but for now, if you need some information on winbind just reply to this post.
 
Old 10-25-2005, 09:12 PM   #3
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
i made a post on the software forum, after answering this and, 'solveit' got back to me with the script your going to want to put in your login file.

mount -t smbfs -o rw,username=$USR,password=$PASS,workgroup=$GRP //$SVR/$SHR $MNTPOINT

http://www.linuxquestions.org/questi...06#post1920206

so to me, the best way of going about this seams to be, authenticate against ADS using winbind and then use the above script for mapping home directories
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FREEBSD5.3 platform: PHP setcookie() successful, but $uid = $_COOKIE['uid']; fail tclwp Programming 1 03-30-2005 08:05 PM
How to map a drive on a windows machine? ginda Linux - Networking 1 03-12-2005 07:36 PM
How do i map samba share in windows xp? ginda Linux - Newbie 3 01-27-2005 12:22 PM
How To Map wine to Windows Eddie283 Linux - Games 6 09-04-2004 08:31 PM
How do i map linux on Windows? vicky4u_hyd Linux - Networking 1 08-25-2004 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration