public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: RFC2307 accounts
Date: Tue, 08 Mar 2016 17:00:00 -0000	[thread overview]
Message-ID: <20160308165949.GC27123@calimero.vinschen.de> (raw)
In-Reply-To: <56DEFE0D.3010308@studelec-sa.com>

[-- Attachment #1: Type: text/plain, Size: 1546 bytes --]

On Mar  8 17:30, Marc Rechte wrote:
> Hello,
> 
>  Trying to set RFC2307 accounts, using unix schema in /etc/nsswitch.conf.
> 
> UID/GID do not reflect what is stored in AD (using POSIX attributes), they
> still follow the 0x100000 + RID scheme
> (https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping)
> 
> Any idea ?
> 
> Thanks
> 
> In cygwin bash:
> 
> $ uname -a
> CYGWIN_NT-6.1 TOURNESOL 2.4.1(0.293/5/3) 2016-01-24 11:26 x86_64 Cygwin
> 
> $ getent passwd mrechte
> mrechte:*:1050005:1049089:U-STUDELEC-SA\mrechte,S-1-5-21-497920593-2320919703-1315762108-1429:/home/mrechte:/bin/bash
> 
> $ cat /etc/nsswitch.conf
> passwd:   files db
> group:    files db
> db_enum:  cache builtin
> db_home: unix
> db_shell: unix
> db_gecos: unix
> 
> On a Linux box attached to the domain, using RFC2307
> $ getent passwd mrechte
> mrechte:*:12007:11000::/home/mrechte:/bin/bash
> 
> This is the correct values ie. 12007/11000

The result is correct, too.  The uid/gid mapping is the mapping from
Windows SID to Cygwin uid/gid, so the uid/gid values reflect the normal
values as computed from the SIDs.

The RFC2307 uid/gid mapping has only one purpose:  Used on NFS or Samba
shares, Cygwin knows that uid 12007 is you.  So during file handling
Cygwin internally maps uid 12007 on the remote FS to the Cygwin uid
1050005 and vice versa.


HTH,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-03-08 17:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-08 16:30 Marc Rechte
2016-03-08 17:00 ` Corinna Vinschen [this message]
2016-03-09  7:09 Marc Rechte
2016-03-09  9:14 ` Mark Geisert
2016-03-09 10:43   ` Marc Rechte
2016-03-09 11:28     ` Corinna Vinschen
2016-03-09 11:50       ` Marc Rechte
2016-03-09 15:58         ` Corinna Vinschen
2016-03-09 16:08           ` Marc Rechte
2016-03-09 22:05         ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160308165949.GC27123@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).