Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[Samba] nested groups with user mapping doesn't work

 
   Linux (Home) -> Samba RSS
Next:  [Samba] Samba winbindd crash  
Author Message
Rainer Weber

External


Since: Jan 09, 2007
Posts: 5



(Msg. 1) Posted: Thu Feb 01, 2007 3:10 pm
Post subject: [Samba] nested groups with user mapping doesn't work
Archived from groups: linux>samba (more info?)

Hi,

i've a samba server (3.0.23d) as a domain member (not a PDC/BDC). My problem is that if I'm using
user mapping with the option 'username map = user.map' the samba server doesn't see that I'm a
member of several domain groups and the nested groups doesn't work. If I deactivate the user mapping
then nested groups works fine but I've a different UID on the unix FS (from the idmap uid range) and
I can't access my files.

The unix user:
bash-3.00# getent passwd raiweber
raiweber:x:120:14:Rainer Weber:/home/raiweber:/usr/bin/bash

The windows user:
bash-3.00# getent passwd WINDOWS+raiweber
raiweber:*:10005:10002:Rainer Weber:/home/raiweber:/bin/bash

The user.map entry looks like:
raiweber = "WINDOWS+raiweber"

The PDC is a Windows Server 2003 and we have both unix and windows user with the same name.


How can I map windows users to a specific UID (e.g. WINDOWS+raiweber to UID 120) and use nested groups?

Thanks.

Rainer

--
+--------------------------------------+
| Max Planck Institute for Mathematics |
| System Administration |
| |
| Vivatsgasse 7, 53111 Bonn, Germany |
| Tel +49 (0)228-402-239 |
| Fax +49 (0)228-402-277 |
| Email raiweber.DeleteThis@mpim-bonn.mpg.de |
+--------------------------------------+
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Back to top
Login to vote
Rainer Weber

External


Since: Jan 09, 2007
Posts: 5



(Msg. 2) Posted: Fri Feb 02, 2007 3:40 pm
Post subject: Re: [Samba] nested groups with user mapping doesn't work [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

if I deactivate the user mapping over 'username map' samba can see that the windows user raiweber is
member of several windows groups.

[2007/02/02 14:07:32, 10] auth/auth_util.c:debug_nt_user_token(454)
NT user token of user S-1-5-21-781721396-396832292-1671184278-1107
contains 11 SIDs
SID[ 0]: S-1-5-21-781721396-396832292-1671184278-1107
SID[ 1]: S-1-5-21-781721396-396832292-1671184278-513
SID[ 2]: S-1-1-0
SID[ 3]: S-1-5-2
SID[ 4]: S-1-5-11
SID[ 5]: S-1-5-21-781721396-396832292-1671184278-1118
SID[ 6]: S-1-5-21-781721396-396832292-1671184278-1108
SID[ 7]: S-1-5-21-781721396-396832292-1671184278-1117
SID[ 8]: S-1-5-21-781721396-396832292-1671184278-1115
SID[ 9]: S-1-5-21-702622059-3335440352-4138491235-2001
SID[ 10]: S-1-5-32-545
SE_PRIV 0x0 0x0 0x0 0x0

If I activate user mapping again I can only see the following in the log.
[2007/02/02 15:21:17, 10] libads/authdata.c:dump_pac_logon_info(723)
The PAC:
User Flags: 0x20 (32)
User Flags: LOGON_EXTRA_SIDS 0x20 (32)
User SID: S-1-5-21-781721396-396832292-1671184278-1107
Group SID: S-1-5-21-781721396-396832292-1671184278-513
Group Membership (Global and Universal Groups of own domain):
0: sid: S-1-5-21-781721396-396832292-1671184278-513
attr: 0x7 == SE_GROUP_MANDATORY SE_GROUP_ENABLED_BY_DEFAULT SE_GROUP_ENABLED
1: sid: S-1-5-21-781721396-396832292-1671184278-1118
attr: 0x7 == SE_GROUP_MANDATORY SE_GROUP_ENABLED_BY_DEFAULT SE_GROUP_ENABLED
2: sid: S-1-5-21-781721396-396832292-1671184278-1108
attr: 0x7 == SE_GROUP_MANDATORY SE_GROUP_ENABLED_BY_DEFAULT SE_GROUP_ENABLED
3: sid: S-1-5-21-781721396-396832292-1671184278-1117
attr: 0x7 == SE_GROUP_MANDATORY SE_GROUP_ENABLED_BY_DEFAULT SE_GROUP_ENABLED
4: sid: S-1-5-21-781721396-396832292-1671184278-1115
attr: 0x7 == SE_GROUP_MANDATORY SE_GROUP_ENABLED_BY_DEFAULT SE_GROUP_ENABLED
Group Membership (Domain Local Groups and Groups from Trusted Domains):
Group Membership (Ressource Groups (SID History ?)):

and

[2007/02/02 15:21:17, 5] auth/auth_util.c:debug_nt_user_token(448)
NT user token: (NULL)
[2007/02/02 15:21:17, 5] auth/auth_util.c:debug_unix_user_token(474)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups


And I nested groups doesn't work.
Can some one please tell me where the problem is?

My smb.conf
[global]
workgroup = WINDOWS
realm = WINDOWS.LOCAL
security = ADS
map to guest = Bad User
password server = 192.168.254.156
root directory = /
username map = /usr/local/samba/private/user.map
lanman auth = No
client NTLMv2 auth = Yes
client lanman auth = No
client plaintext auth = No
log level = 10
min protocol = NT1
client signing = required
server signing = required
load printers = No
domain master = No
ldap ssl = no
idmap uid = 10000-20000
idmap gid = 10000-20000
template homedir = /home/%U
template shell = /bin/bash
winbind separator = +
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
hosts allow = 192.168.254.156, 192.168.254.121, 192.168.254.236

[local_home]
path = /local_home
read only = No


Thanks.

Rainer

Rainer Weber wrote:
> Hi,
>
> i've a samba server (3.0.23d) as a domain member (not a PDC/BDC). My
> problem is that if I'm using user mapping with the option 'username map
> = user.map' the samba server doesn't see that I'm a member of several
> domain groups and the nested groups doesn't work. If I deactivate the
> user mapping then nested groups works fine but I've a different UID on
> the unix FS (from the idmap uid range) and I can't access my files.
>
> The unix user:
> bash-3.00# getent passwd raiweber
> raiweber:x:120:14:Rainer Weber:/home/raiweber:/usr/bin/bash
>
> The windows user:
> bash-3.00# getent passwd WINDOWS+raiweber
> raiweber:*:10005:10002:Rainer Weber:/home/raiweber:/bin/bash
>
> The user.map entry looks like:
> raiweber = "WINDOWS+raiweber"
>
> The PDC is a Windows Server 2003 and we have both unix and windows user
> with the same name.
>
>
> How can I map windows users to a specific UID (e.g. WINDOWS+raiweber to
> UID 120) and use nested groups?
>
> Thanks.
>
> Rainer
>

--
+--------------------------------------+
| Max Planck Institute for Mathematics |
| System Administration |
| |
| Vivatsgasse 7, 53111 Bonn, Germany |
| Tel +49 (0)228-402-239 |
| Fax +49 (0)228-402-277 |
| Email raiweber RemoveThis @mpim-bonn.mpg.de |
+--------------------------------------+
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Back to top
Login to vote
Rainer Weber

External


Since: Jan 09, 2007
Posts: 5



(Msg. 3) Posted: Fri Feb 02, 2007 3:50 pm
Post subject: Re: [Samba] nested groups with user mapping doesn't work [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry,
after the user mapping the nt_user_token is

[2007/02/02 15:21:17, 10] auth/auth_util.c:debug_nt_user_token(454)
NT user token of user S-1-22-1-10002
contains 6 SIDs
SID[ 0]: S-1-22-1-10002
SID[ 1]: S-1-5-21-781721396-396832292-1671184278-513
SID[ 2]: S-1-1-0
SID[ 3]: S-1-5-2
SID[ 4]: S-1-5-11
SID[ 5]: S-1-5-32-545
SE_PRIV 0x0 0x0 0x0 0x0

So you can see that the user has no domain groups.

Rainer Weber wrote:
> If I activate user mapping again I can only see the following in the log.
> [2007/02/02 15:21:17, 10] libads/authdata.c:dump_pac_logon_info(723)
> The PAC:
> User Flags: 0x20 (32)
> User Flags: LOGON_EXTRA_SIDS 0x20 (32)
> User SID: S-1-5-21-781721396-396832292-1671184278-1107
> Group SID: S-1-5-21-781721396-396832292-1671184278-513
> Group Membership (Global and Universal Groups of own domain):
> 0: sid: S-1-5-21-781721396-396832292-1671184278-513
> attr: 0x7 == SE_GROUP_MANDATORY
> SE_GROUP_ENABLED_BY_DEFAULT SE_GROUP_ENABLED
> 1: sid: S-1-5-21-781721396-396832292-1671184278-1118
> attr: 0x7 == SE_GROUP_MANDATORY
> SE_GROUP_ENABLED_BY_DEFAULT SE_GROUP_ENABLED
> 2: sid: S-1-5-21-781721396-396832292-1671184278-1108
> attr: 0x7 == SE_GROUP_MANDATORY
> SE_GROUP_ENABLED_BY_DEFAULT SE_GROUP_ENABLED
> 3: sid: S-1-5-21-781721396-396832292-1671184278-1117
> attr: 0x7 == SE_GROUP_MANDATORY
> SE_GROUP_ENABLED_BY_DEFAULT SE_GROUP_ENABLED
> 4: sid: S-1-5-21-781721396-396832292-1671184278-1115
> attr: 0x7 == SE_GROUP_MANDATORY
> SE_GROUP_ENABLED_BY_DEFAULT SE_GROUP_ENABLED
> Group Membership (Domain Local Groups and Groups from Trusted
> Domains):
> Group Membership (Ressource Groups (SID History ?)):
>
> and
>
> [2007/02/02 15:21:17, 5] auth/auth_util.c:debug_nt_user_token(448)
> NT user token: (NULL)
> [2007/02/02 15:21:17, 5] auth/auth_util.c:debug_unix_user_token(474)
> UNIX token of user 0
> Primary group is 0 and contains 0 supplementary groups
>
>
> And I nested groups doesn't work.
> Can some one please tell me where the problem is?
>

--
+--------------------------------------+
| Max Planck Institute for Mathematics |
| System Administration |
| |
| Vivatsgasse 7, 53111 Bonn, Germany |
| Tel +49 (0)228-402-239 |
| Fax +49 (0)228-402-277 |
| Email raiweber RemoveThis @mpim-bonn.mpg.de |
+--------------------------------------+
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Back to top
Login to vote
"Gerald

External


Since: Jun 07, 2005
Posts: 304



(Msg. 4) Posted: Fri Mar 02, 2007 3:00 pm
Post subject: Re: [Samba] nested groups with user mapping doesn't work [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rainer Weber wrote:
> Sorry,
> after the user mapping the nt_user_token is
>
> [2007/02/02 15:21:17, 10] auth/auth_util.c:debug_nt_user_token(454)
> NT user token of user S-1-22-1-10002
> contains 6 SIDs
> SID[ 0]: S-1-22-1-10002
> SID[ 1]: S-1-5-21-781721396-396832292-1671184278-513
> SID[ 2]: S-1-1-0
> SID[ 3]: S-1-5-2
> SID[ 4]: S-1-5-11
> SID[ 5]: S-1-5-32-545
> SE_PRIV 0x0 0x0 0x0 0x0
>
> So you can see that the user has no domain groups.

This is by intention. If you map to a local user, you get
the user's local groups.






cheers, jerry
=====================================================================
Samba ------- http://www.samba.org
Centeris ----------- http://www.centeris.com
"What man is a man who does not make the world better?" --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF6Cu0IR7qMdg1EfYRAr6CAKCHvO5oiVILbPX+zSvGIeOpWtPloACfTB/j
kvUdIGnsbQun9tU/2cb7JKg=
=l+TC
-----END PGP SIGNATURE-----
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Samba] apache, apache's mod-auth-pam, and pam_winbind : n.. - this problem might be more to do with apache than winbind, but I'll start here anyway... Problem: can't get apache httpauth to work with nested groups, though ssh auth (also using pam) to same box does Config:..

[Samba] Samba does not work with new AD groups - Hi all, I've configured a system to authenticate with an AD 2k3 domain (all domain controllers have SP1) using winbind. I have joined the server to the domain as well. I created some shares to work with AD groups. Here's a quick snippet of a share..

[Samba] Wbinfo -Y couldn't work with idmap_rid for BUILTIN.. - Hi, wbinfo -Y BUILTIN\group can work without idmap_rid in Samba-3.0.14a. But I'm experiencing wbinfo -Y with idmap_rid failed for SID to GID conversion of BUILTIN groups. Since idmap_rid only works in a single domain, and captures workgroup's domain..

[Samba] User name mapping on Active Directory - Hi Active Directory and Samba People Could you Please teach me, if there is any user name (Active directroy) mapping functionality is available in active directory similar to SAMBA (example .putiing the statement "username map=/etc/samba/user.map&qu...

[Samba] Mapping a windows drive to a linux home space as a.. - I have got my GNU/Linux user auth working against my 2k3AD but my question is this : Is it possable to map a users windows based "home" drive share to there GNU/linux home drive? Thanks Brett -- Please avoid sending me Microsoft Office (e.g....
       Linux (Home) -> 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 Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact