Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[Samba] AD authentication for local users

 
   Soft32 Home -> Linux -> Samba RSS
Next:  Welche webcam ?  
Author Message
Mark Drayton

External


Since: Nov 03, 2009
Posts: 1



(Msg. 1) Posted: Tue Nov 03, 2009 11:20 am
Post subject: [Samba] AD authentication for local users
Archived from groups: linux>samba (more info?)

Hi

We have a lot of Linux development servers (RHEL 5.3, Samba 3.0.33)
which are generally accessed via SSH. Each developer has a local
account on each box, managed by Puppet. Logins are via private keys
only; there are no local passwords.

I'd like to run Samba on these boxes and authenticate against our AD
domain. I don't want AD authentication for anything besides Samba --
the only other service we run is SSH via keys.

Here's my smb.conf:

[global]
workgroup = DOMAIN
server string = Samba Server Version %v
security = ADS
realm = DOMAIN.FQDN
encrypt passwords = yes
log level = 3
log file = /var/log/samba/%U.log

[homes]
comment = Home Directories
browseable = no
writable = yes

I'm pretty sure the Kerberos configuration is fine as I've joined the domain.

Relevant (ie, non-standard) nsswitch.conf lines:

passwd: files winbind
group: files winbind

It looks like the problem is AD UID to UNIX UID mapping. The default
TDB backend will create 'virtual' UNIX accounts on demand but I don't
want this -- I want user 'foo' to map to the local user 'foo'. If I
add idmap uid and idmap gid lines the users authenticate okay but the
TDB idmap backend wants to map a new user instead of using the
existing UNIX account by the same name.

Is this a workable configuration? I feel like I've tried every
combination of PAM fiddling and idmap settings possible for what seems
like a straightforward setup.

Cheers,

Mark
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Login to vote
Adam Nielsen

External


Since: Sep 09, 2009
Posts: 9



(Msg. 2) Posted: Tue Nov 03, 2009 11:20 pm
Post subject: Re: [Samba] AD authentication for local users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> It looks like the problem is AD UID to UNIX UID mapping. The default
> TDB backend will create 'virtual' UNIX accounts on demand but I don't
> want this -- I want user 'foo' to map to the local user 'foo'. If I
> add idmap uid and idmap gid lines the users authenticate okay but the
> TDB idmap backend wants to map a new user instead of using the
> existing UNIX account by the same name.

Have you looked at the 'username map' option? AFAIK you will need to
map AD to UNIX users by hand if you don't want the autocreate behaviour.
You might be able to script the production of the username mapping file
though, which would automate it to a certain extent.

Cheers,
Adam.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Samba] combining local users or smbpasswd users and NTDOM.. - My last question went unanswered - probably because of the confused way that I asked it. I have a new samba server -..

[Samba] [Fwd: [squid-users] NTLM Authentication Problem] - I submited this to the Squid list, but I got no response which I assume means that no one has any suggestions. Can..

[Samba] Converting local unix users to winbindd - I've got a samba server with about 800 users that is part of a NT domain, and is set to security=server (pointing to a....

[Samba] Solution to a Problem - Adding domain users as loc.. - I thought I'd post an observation about a problem I solved so that others might benefit. I must admit I was strugglin...

[Samba] samba2.2.8/winbind : is it possible to add domain .. - And is it supposed to work ? i've added the winbind authenticated user "francois" into the group "intra...

[Samba] Samba PDC failing to provide authentication for MS.. - Workstations in our network fail to make ODBC SQL server connections using NT authentication mode. This is our..
       Soft32 Home -> Linux -> Samba All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]