* Allow an admin to define the "uid" attribute for a RFC2307
commit69cd526ab0cc2cc5a3a91e7311b4f092a3aae0b7
authorGerald (Jerry) Carter <jerry@samba.org>
Tue, 16 Sep 2008 17:41:55 +0000 (16 10:41 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sun, 21 Sep 2008 19:36:36 +0000 (21 12:36 -0700)
tree30df34a3a5e2788c911acea6159aa3bac7855f5d
parent88a50dd5833a9a699ef081e2b8e70bfa5f53c9a4
* Allow an admin to define the "uid" attribute for a RFC2307
  user object in AD to be the username alias.

For example:

  $ net ads search "(uid=coffeedude)"
  distinguishedName: CN=Gerald W. Carter,CN=Users,DC=pink,DC=plainjoe,DC=org
  sAMAccountName: gcarter
  memberOf: CN=UnixUsers,CN=Users,DC=pink,DC=plainjoe,DC=org
  memberOf: CN=Domain Admins,CN=Users,DC=pink,DC=plainjoe,DC=org
  memberOf: CN=Enterprise Admins,CN=Users,DC=pink,DC=plainjoe,DC=org
  memberOf: CN=Schema Admins,CN=Users,DC=pink,DC=plainjoe,DC=org
  uid: coffeedude
  uidNumber: 10000
  gidNumber: 10000
  unixHomeDirectory: /home/gcarter
  loginShell: /bin/bash

  $ ssh coffeedude@192.168.56.91
  Password:

  coffeedude@orville:~$ id
  uid=10000(coffeedude) gid=10000(PINK\unixusers) groups=10000(PINK\unixusers)

  $ getent passwd PINK\\gcarter
  coffeedude:*:10000:10000::/home/gcarter:/bin/bash

  $ getent passwd coffeedude
  coffeedude:*:10000:10000::/home/gcarter:/bin/bash

  $ getent group PINK\\Unixusers
  PINK\unixusers:x:10000:coffeedude
(cherry picked from commit 7cdcf4dff2cb02ec16f4e78b85701cd2043be274)
source/include/ads.h
source/libads/ldap_schema.c
source/winbindd/idmap_ad.c