From 45ef010341391eb8fb3656e029dea5746cb35807 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sat, 6 Nov 2004 00:11:16 +0000 Subject: More work in progress - further commits to follow. (This used to be commit 3e03d26588627b7107ecd57577b063c7fe3557e0) --- docs/Samba-HOWTO-Collection/IDMAP.xml | 162 ++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) (limited to 'docs/Samba-HOWTO-Collection/IDMAP.xml') diff --git a/docs/Samba-HOWTO-Collection/IDMAP.xml b/docs/Samba-HOWTO-Collection/IDMAP.xml index fceade8cc2..b7cfb5f427 100644 --- a/docs/Samba-HOWTO-Collection/IDMAP.xml +++ b/docs/Samba-HOWTO-Collection/IDMAP.xml @@ -315,20 +315,150 @@ on Server Types and Security Modes. IDMAP Backend Usage +Anyone who wishes to use winbind will find the following example configurations helpful. +Remember that in the majority of cases winbind is of primary interest for use with +Domain Member Servers (DMSs) and Domain Member Clients (DMCs). Default Winbind TDB + The following is a simple example of an NT4 DMS &smb.conf; file that shows only the global section. + +#Global parameters +[global] + workgroup = MEGANET2 + security = DOMAIN + idmap uid = 10000-20000 + idmap gid = 10000-20000 + template primary group = "Domain Users" + template shell = /bin/bash + winbind separator = + + + + The creation of the DMS requires the following steps: + + + + + Create or install and &smb.conf; file with the above configuration. + + + + Execute: + +&rootprompt; net rpc join -UAdministrator%password +Joined domain MEGANET2. + + The success or failure of the join can be confirmed with the following command: + +&rootprompt; net rpc testjoin +Join to 'MIDEARTH' is OK + + A failed join would report the following: + +&rootprompt; net rpc testjoin +[2004/11/05 16:34:12, 0] utils/net_rpc_join.c:net_rpc_join_ok(66) +Join to domain 'MEGANET2' is not valid + + + + + Start the nmbd, winbind, and smbd daemons in the order shown. + + + + + The procedure for joining and ADS domain is similar to the NT4 domain join, except the &smb.conf; file + will have the following contents: + +# Global parameters +[global] + workgroup = BUTTERNET + netbios name = GARGOYLE + realm = BUTTERNET.BIZ + security = ADS + template shell = /bin/bash + idmap uid = 500-10000000 + idmap gid = 500-10000000 + winbind use default domain = Yes + winbind nested groups = Yes + printer admin = "BUTTERNET\Domain Admins" + + + + + ADS DMS operation requires use of kerberos (KRB). For this to work the krb5.conf + must be configured. The exact requirements depends on which version of MIT or Heimdal kerberos is being + used. It is sound advice to use only the latest version, which at this time are MIT kerberos version + 1.3.5 and Heimdal 0.61. + + + + The creation of the DMS requires the following steps: + + + + + Create or install and &smb.conf; file with the above configuration. + + + + Execute: + +&rootprompt; net ads join -UAdministrator%password +Joined domain BUTTERNET. + + The success or failure of the join can be confirmed with the following command: + +&rootprompt; net ads testjoin +Join to 'BUTTERNET' is OK + + + + + An invalid or failed join can be detected by executing: + +&rootprompt; net ads testjoin +GARGOYLE$@'s password: +[2004/11/05 16:53:03, 0] utils/net_ads.c:ads_startup(186) + ads_connect: No results returned +Join to domain is not valid + + + + + Start the nmbd, winbind, and smbd daemons in the order shown. + + + + IDMAP Storage in LDAP using Winbind + +# Global parameters +[global] + workgroup = SNOWSHOW + realm = SNOWSHOW.COM + server string = Samba Server + security = ADS + log level = 1 ads:10 auth:10 sam:10 rpc:10 + ldap admin dn = cn=Manager,dc=SNOWSHOW,dc=COM + ldap idmap suffix = ou=Idmap + ldap suffix = dc=SNOWSHOW,dc=COM + idmap backend = ldap:ldap://ldap.snowshow.com + idmap uid = 150000-550000 + idmap gid = 150000-550000 + template shell = /bin/bash + winbind use default domain = Yes + @@ -337,6 +467,20 @@ on Server Types and Security Modes. IDMAP and NSS IDMAP Resolution + +# Global parameters +[global] + workgroup = BOBBY + realm = BOBBY.COM + security = ADS + idmap uid = 150000-550000 + idmap gid = 150000-550000 + template shell = /bin/bash + winbind cache time = 5 + winbind use default domain = Yes + winbind trusted domains only = Yes + winbind nested groups = Yes + @@ -361,6 +505,24 @@ on Server Types and Security Modes. IDMAP_RID with Winbind + +# Global parameters +[global] + workgroup = KPAK + realm = corp.kpak.com + server string = Office Server + security = ADS + allow trusted domains = No + idmap backend = idmap_rid:KPAK=500-100000000 + idmap uid = 500-100000000 + idmap gid = 500-100000000 + template shell = /bin/bash + winbind use default domain = Yes + winbind enum users = No + winbind enum groups = No + winbind nested groups = Yes + printer admin = "Domain Admins" + -- cgit