This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[kai/samba-autobuild/.git] / WHATSNEW.txt
1                    WHATS NEW IN Samba 3.0.1pre3
2                         November 14, 2003
3                   ==============================
4
5 This is a preview release of the Samba 3.0.1 code base and is
6 provided for testing only.  This release is *not* intended for
7 production servers.  Use at your own risk.
8
9 There have been several bug fixes since the 3.0.0 release that
10 we feel are important to make available to the Samba community
11 for wider testings.  See the "Changes" section for details on
12 exact updates.
13
14
15 ######################################################################
16 Changes
17 #######
18 Changes since 3.0.1pre2
19 -----------------------
20
21 Please refer to the CVS log for the SAMBA_3_0 branch for complete
22 details:
23
24 1)  Skip over the winbind separator when looking up a user.
25     This fixes the bug that prevented local users from
26     matching an AD user when not running winbindd (bug 698).
27 2)  Fix a problem with configure on *BSD systems. Make sure
28     we add -liconv etc to LDFLAGS.
29 3)  Fix core dump bug when "security = server" and the authentication
30     server goes away.
31 4)  Correct crash bug due to an empty munged dial string.
32 5)  Show files locked by a specific user (smbstatus -u 'user') 
33     (bug 590).
34 6)  Fix bug preventing print jobs from display in the queue
35     monitor used by Windows NT and later clients (bug 660).
36 7)  Fix several reported problems with point-n-print from
37     Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
38     reply (bug 338, 527 & 643).
39 8)  Fix a handful of potential memory leaks in the LDAP code used
40     by ldapsam[_compat] and the LDAP idmap backend.
41
42
43 Changes since 3.0.1pre1
44 -----------------------
45
46 1)  Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
47 2)  Updated Japanese welcome file in SWAT.
48 3)  Fix to  nt-time <-> unix-time functions reversible.
49 4)  Ensure that winbindd uses the the escaped DN when querying
50     an AD ldap server.
51 5)  Fix portability issues when compiling (bug 505, 550)
52 6)  Compile fix for tdbbackup when Samba needs to override 
53     non-C99 compliant implementations of snprintf().
54 7)  Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
55 8)  Make sure we break out of samsync loop on error.
56 9)  Ensure error code path doesn't free unmalloc()'d memory
57     (bug 628).
58 10) Add configure test for krb5_keytab_entry keyblock vs key 
59     member (bug 636).
60 11) Fixed spinlocks.
61 12) Modified testparm so that all output so all debug output goes 
62     to stderr, and all file processing goes to stdout.
63 13) Fix error return code for BUFFER_TOO_SMALL in smbcacls 
64     and smbcquotas.
65 14) Fix "NULL dest in safe_strcpy()" log message by ensuring that 
66     we have a devmode before copying a string to the devicename.
67 15) Support mapping REALM.COM\user to a local user account (without 
68     running winbindd)  for compatibility with 2.2.x release.
69 16) Ensure we don't use mmap() on blacklisted systems.
70 17) fixed a number of bugs and memory leaks in the AIX 
71     winbindd shim
72 18) Call initgroups() in SWAT before becomming the user so that
73     secondary group permissions can be used when writing to 
74     smb.conf.
75 19) Fix signing problems when reverse connecting back to a 
76     client for printer notify
77 20) Fix signing problems caused by a miss-sequence bug.
78 21) Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
79     Fixes NEXUS tools running on Win9x clients (bug 64).
80 22) Don't leave the domain field uninitialized in cli_lsa.c if some 
81     SID could not be mapped.
82 23) Fix segfault in mount.cifs helper when there is no options 
83     specified during mount.
84 24) Change the \n after the password prompt to go to tty instead 
85     of stdout (bug 668).
86 25) Stop net -P from prompting for machine account password (bug 451).
87 26) Change in behavior to Not only change the effective uid but also
88     the real uid when becoming unprivileged.
89 27) Cope with Exchange 5.5 cleartext pop password auth.
90 28) New files for support of initshutdown pipe.  Win2k doesn't 
91     respond properly to all requests on the winreg pipe, so we need 
92     to handle this new pipe (bug 534).
93 29) Added more va_copy() checks in configure.in.
94 30) Include fixes for libsmbclient build problems.
95 31) Missing UNIX -> DOS codepage conversion in lanman.c.
96 32) Allow DFMS-S filenames can now have arbitrary case (bug 667).
97 33) Parameterize the listen backlog in smbd and make it larger by
98     default. A backlog of 5 is way too small these days.
99 34) Check for an invalid fid before dereferencing the fsp pointer
100     (bug 696).
101 35) Remove invalid memory frees and return codes in pdb_ldap.c.
102 36) Prompt for password when invoking --set-auth-user and no 
103     password is given.
104 37) Bind the nmbd sending socket to the 'socket address'.
105 38) Re-order link command for smbd, rpcclient and smbpasswd to ensure 
106     $LDFLAGS occurs before any library specification (bug 661).
107 39) Fix large number of printf() calls for 64-bit size_t.
108 40) Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the 
109     keyblock in the krb5 structs.
110 41) Remove #include <compat.h> in hopes to avoid problems with 
111     apache header files.
112 42) COrrect winbindd build problems on HP-UX 11
113 43) Lowercase netgroups lookups (bug 703).
114 44) Use the actual size of the buffer in strftime instead of a made
115     up value which just happens to be less than sizeof(fstring).  
116     (bug 713).
117 45) Add ldaplibs to pdbedit link line (bug 651).
118 46) Fix crash bug in smbclient completion (bug 659).
119 47) Fix packet length for browse list reply (bug 771).
120 48) Fix coredump in cli_get_backup_list().
121 49) Make sure that we expand %N (bug 612).
122 50) Allow rpcclient adddriver command to specify printer driver 
123     version (bug 514).
124 51) Compile tdbdump by default.
125 52) Apply patches to fix iconv detection for FreeBSD.
126 53) Do not allow the 'guest account' to be added to a passdb backend 
127     using smbpasswd or pdbedit (bug 624).
128 54) Save LDFLAGS during iconv detection (bug 57).
129 55) Run krb5 logins through the username map if the winbindd 
130     lookup fails (bug 698).
131 56) Add const for lp_set_name_resolve_order() to avoid compiler 
132     warnings (bug 471).
133 57) Add support for the %i macro in smb.conf to stand in for the for
134     the local IP address to which a client connected.
135 58) Allow winbindd to match local accounts to domain SID when 
136     'winbind trusted domains only = yes' (bug 680).
137 59) Remove code in idmap_ldap that searches the user suffix and group 
138     suffix.  It's not needed and provides inconsistent functionality 
139     from the tdb backend.
140 60) Patch to handle munged dial string for Windows 200 TSE.
141 61) Correct the "smbldap_open: cannot access when not root error"
142     messages when looking up group information (bug 281).
143
144
145     
146 Changes since 3.0.0
147 -------------------
148
149 Modified parameters
150   * mangled map (deprecated)
151   
152 Removed Parameters
153   * mangled stack (unused)
154
155
156 1)  Change the interface for init_unistr2 to not take a length 
157     but a flags field.  We were assuming that 
158     2*strlen(mb_string) == length of ucs2-le string.  (bug 480).
159 2)  Allow d_printf() to handle strings with escaped quotation 
160     marks since the msg file includes the escape character (bug 489).
161 3)  Fix bad html table row termination in SWAT wizard code (bug 413).
162 4)  Fix to parse the level-2 strings.
163 5)  Fix for "valid users = %S" in [homes].  Fix read/write 
164     list as well. 
165 6)  Change AC_CHECK_LIB_EXT to prepend libraries instead of append.  
166     This is the same way AC_CHECK_LIB works (bug 508).
167 7)  Testparm output fixes for clarity.
168 8)  Fix broken wins hook functionality -- i18n bug (bug 528).
169 9)  Take care of condition where DOS and NT error codes must differ.
170 10) Default to using only built-in charsets when a working iconv 
171     implementation cannot be located.
172 11) Wrap internals of sys_setgroups() so the sys_XX() call can 
173     be done unconditionally (bug 550).
174 12) Remove duplicate smbspool link on SWAT's front page (bug 541).
175 13) Save and restore CFLAGS before/after AC_PROG_CC.  Ensures that
176     --enable-debug=[yes|no] works correctly.
177 14) Allow ^C to interrupt smbpasswd if using our getpass 
178     (e.g. smbpasswd command).
179 15) Support signing only on RPC's (bug 167).
180 16) Correct bug that prevented  Excel 2000 clients from opening 
181     files marked as read-only.
182 17) Portability fix bugs 546 - 549).
183 18) Explicitly initialize the value of AR for vendor makes that don't
184     do this (e.g. HPUX 11).  (bug 552).
185 19) More i18n fixes for SWAT (bug 413).
186 20) Change the cwd before the postexec script to ensure that a
187     umount will succeed.
188 21) Correct double free that caused winbindd to crash when a DC 
189     is rebooted (bug 437).
190 22) Fix incorrect mode sum (bug 562).
191 23) Canonicalize SMB_INFO_ALLOCATION in the same was as
192     SMB_FS_FULL_SIZE_INFORMATION (bug 564).
193 24) Add script to generate *msg files.
194 25) Add Dutch SWAT translation file.
195 26) Make sure to call get_user_groups() with the full winbindd 
196     name for a user if he/she has one (bug 406).
197 27) Fix up error code returns from Samba4 tester. Ensure invalid 
198     paths are validated the same way.  
199 28) Allow Samba3 to pass the Samba4 RAW-READ tests.
200 29) Refuse to configure if --with-expsam=$BACKEND was used but no 
201     libraries were found for $BACKEND.
202 30) Move sysquotas autoconf tests to a separate file.
203 31) Match W2K w.r.t. writelock and writeclose.  Samba4 torture 
204     tester
205 32) Make sure that the files that contain the static_init_$subsystem; 
206     macro get recompiled after configure by removing the object 
207     files.
208 33) Ensure canceling a blocking lock returns the correct error 
209     message.
210 34) Match Samba 2.2, and make ACB_NORMAL the default ACB value.
211
212
213
214 ######################################################################
215
216               =======================================
217               The original 3.0.0 release notes follow          
218               =======================================
219
220
221 Major new features:
222 -------------------
223
224 1)  Active Directory support.  Samba 3.0 is now able to  
225     join a ADS realm as a member server and authenticate 
226     users using LDAP/Kerberos.
227
228 2)  Unicode support. Samba will now negotiate UNICODE on the wire 
229     and internally there is now a much better infrastructure for 
230     multi-byte and UNICODE character sets.
231
232 3)  New authentication system. The internal authentication system 
233     has been almost completely rewritten. Most of the changes are 
234     internal, but the new auth system is also very configurable.
235
236 4)  New default filename mangling system.
237
238 5)  A new "net" command has been added. It is somewhat similar to 
239     the "net" command in windows. Eventually we plan to replace 
240     numerous other utilities (such as smbpasswd) with subcommands 
241     in "net".
242
243 6)  Samba now negotiates NT-style status32 codes on the wire. This
244     improves error handling a lot.
245
246 7)  Better Windows 2000/XP/2003 printing support including publishing
247     printer attributes in active directory.
248
249 8)  New loadable module support for passdb backends and character 
250     sets.
251
252 9)  New default dual-daemon winbindd support for better performance.
253
254 10) Support for migrating from a Windows NT 4.0 domain to a Samba 
255     domain and maintaining user, group and domain SIDs.
256
257 11) Support for establishing trust relationships with Windows NT 4.0
258     domain controllers.
259   
260 12) Initial support for a distributed Winbind architecture using
261     an LDAP directory for storing SID to uid/gid mappings.
262   
263 13) Major updates to the Samba documentation tree.
264
265 14) Full support for client and server SMB signing to ensure
266     compatibility with default Windows 2003 security settings.
267
268 15) Improvement of ACL mapping features based on code donated by
269     Andreas Grünbacher.
270
271
272 Plus lots of other improvements!
273
274
275 Additional Documentation
276 ------------------------
277
278 Please refer to Samba documentation tree (included in the docs/ 
279 subdirectory) for extensive explanations of installing, configuring
280 and maintaining Samba 3.0 servers and clients.  It is advised to 
281 begin with the Samba-HOWTO-Collection for overviews and specific 
282 tasks (the current book is up to approximately 400 pages) and to 
283 refer to the various man pages for information on individual options.
284
285 We are very glad to be able to include the second edition of
286 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
287 (O'Reilly & Associates) in this release.  The book is available
288 on-line at http://samba.org/samba/docs/ and is included with 
289 the Samba Web Administration Tool (SWAT).  Thanks to the authors and
290 publisher for making "Using Samba" under the GNU Free Documentation 
291 License.
292
293
294 ######################################################################
295 Upgrading from a previous Samba 3.0 beta
296 ########################################
297
298 Beginning with Samba 3.0.0beta3, the RID allocation functions
299 have been moved into winbindd.  Previously these were handled
300 by each passdb backend.  This means that winbindd must be running
301 to automatically allocate RIDs for users and/or groups.  Otherwise,
302 smbd will use the 2.2 algorithm for generating new RIDs.
303
304 If you are using 'passdb backend = tdbsam' with a previous Samba 
305 3.0 beta release (or possibly alpha), it may be necessary to 
306 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
307 to winbindd_idmap.tdb.  To do this:
308
309 1)  Ensure that winbindd_idmap.tdb exists (launch winbindd at least 
310     once)
311 2)  build tdbtool by executing 'make tdbtool' in the source/tdb/ 
312     directory
313 3)  run: (note that 'tdb>' is the tool's prompt for input)
314
315        root# ./tdbtool /usr/local/samba/private/passdb.tdb
316        tdb> show RID_COUNTER
317        key 12 bytes
318        RID_COUNTER
319        data 4 bytes
320        [000] 0A 52 00 00                                       .R.
321
322        tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
323        ....
324        record moved
325
326 If you are using 'passdb backend = ldapsam', it will be necessary to 
327 store idmap entries in the LDAP directory as well (i.e. idmap backend 
328 = ldap).  Refer to the 'net idmap' command for more information on 
329 migrating SID<->UNIX id mappings from one backend to another.
330
331 If the RID_COUNTER record does not exist, then these instructions are
332 unneccessary and the new RID_COUNTER record will be correctly generated
333 if needed.  
334
335
336
337 ########################
338 Upgrading from Samba 2.2
339 ########################
340
341 This section is provided to help administrators understand the details
342 involved with upgrading a Samba 2.2 server to Samba 3.0.
343
344
345 Building
346 --------
347
348 Many of the options to the GNU autoconf script have been modified 
349 in the 3.0 release.  The most noticeable are:
350
351   * removal of --with-tdbsam (is now included by default; see section
352     on passdb backends and authentication for more details)
353     
354   * --with-ldapsam is now on used to provided backward compatible
355     parameters for LDAP enabled Samba 2.2 servers.  Refer to the passdb 
356     backend and authentication section for more details
357   
358   * inclusion of non-standard passdb modules may be enabled using
359     --with-expsam.  This includes an XML backend and a mysql backend.
360       
361   * removal of --with-msdfs (is now enabled by default)
362   
363   * removal of --with-ssl (no longer supported)
364   
365   * --with-utmp now defaults to 'yes' on supported systems
366   
367   * --with-sendfile-support is now enabled by default on supported 
368     systems
369   
370     
371 Parameters
372 ----------
373
374 This section contains a brief listing of changes to smb.conf options
375 in the 3.0.0 release.  Please refer to the smb.conf(5) man page for
376 complete descriptions of new or modified parameters.
377
378 Removed Parameters (order alphabetically):
379
380   * admin log
381   * alternate permissions
382   * character set
383   * client codepage
384   * code page directory
385   * coding system
386   * domain admin group
387   * domain guest group
388   * force unknown acl user
389   * nt smb support
390   * postscript
391   * printer driver
392   * printer driver file
393   * printer driver location
394   * status
395   * strip dot
396   * total print jobs
397   * use rhosts
398   * valid chars
399   * vfs options
400
401 New Parameters (new parameters have been grouped by function):
402
403   Remote management
404   -----------------
405   * abort shutdown script
406   * shutdown script
407
408   User and Group Account Management
409   ---------------------------------
410   * add group script
411   * add machine script
412   * add user to group script
413   * algorithmic rid base
414   * delete group script
415   * delete user from group script
416   * passdb backend
417   * set primary group script
418
419   Authentication
420   --------------
421   * auth methods
422   * realm
423
424   Protocol Options
425   ----------------
426   * client lanman auth
427   * client NTLMv2 auth
428   * client schannel
429   * client signing
430   * client use spnego
431   * disable netbios
432   * ntlm auth
433   * paranoid server security
434   * server schannel
435   * server signing
436   * smb ports
437   * use spnego
438
439   File Service
440   ------------
441   * get quota command
442   * hide special files
443   * hide unwriteable files
444   * hostname lookups
445   * kernel change notify
446   * mangle prefix
447   * map acl inherit
448   * msdfs proxy
449   * set quota command
450   * use sendfile
451   * vfs objects
452   
453   Printing
454   --------
455   * max reported print jobs
456
457   UNICODE and Character Sets
458   --------------------------
459   * display charset
460   * dos charset
461   * unicode
462   * unix charset
463   
464   SID to uid/gid Mappings
465   -----------------------
466   * idmap backend
467   * idmap gid
468   * idmap uid
469   * winbind enable local accounts
470   * winbind trusted domains only
471   * template primary group
472   * enable rid algorithm
473
474   LDAP
475   ----
476   * ldap delete dn
477   * ldap group suffix
478   * ldap idmap suffix
479   * ldap machine suffix
480   * ldap passwd sync
481   * ldap user suffix
482   
483   General Configuration
484   ---------------------
485   * preload modules
486   * private dir
487
488 Modified Parameters (changes in behavior):
489
490   * encrypt passwords (enabled by default)
491   * mangling method (set to 'hash2' by default)
492   * passwd chat
493   * passwd program
494   * restrict anonymous (integer value)
495   * security (new 'ads' value)
496   * strict locking (enabled by default)
497   * unix extensions (enabled by default)
498   * winbind cache time (increased to 5 minutes)
499   * winbind uid (deprecated in favor of 'idmap uid')
500   * winbind gid (deprecated in favor of 'idmap gid')
501
502
503 Databases
504 ---------
505
506 This section contains brief descriptions of any new databases 
507 introduced in Samba 3.0.  Please remember to backup your existing 
508 ${lock directory}/*tdb before upgrading to Samba 3.0.  Samba will 
509 upgrade databases as they are opened (if necessary), but downgrading 
510 from 3.0 to 2.2 is an unsupported path.
511
512 Name                    Description                             Backup?
513 ----                    -----------                             -------
514 account_policy          User policy settings                    yes
515 gencache                Generic caching db                      no
516 group_mapping           Mapping table from Windows              yes
517                         groups/SID to unix groups        
518 winbindd_idmap          ID map table from SIDS to UNIX          yes
519                         uids/gids.
520 namecache               Name resolution cache entries           no
521 netsamlogon_cache       Cache of NET_USER_INFO_3 structure      no
522                         returned as part of a successful
523                         net_sam_logon request 
524 printing/*.tdb          Cached output from 'lpq                 no
525                         command' created on a per print 
526                         service basis
527 registry                Read-only samba registry skeleton       no
528                         that provides support for exporting
529                         various db tables via the winreg RPCs
530
531
532 Changes in Behavior
533 -------------------
534
535 The following issues are known changes in behavior between Samba 2.2 and 
536 Samba 3.0 that may affect certain installations of Samba.
537
538   1)  When operating as a member of a Windows domain, Samba 2.2 would 
539       map any users authenticated by the remote DC to the 'guest account'
540       if a uid could not be obtained via the getpwnam() call.  Samba 3.0
541       rejects the connection as NT_STATUS_LOGON_FAILURE.  There is no 
542       current work around to re-establish the 2.2 behavior.
543       
544   2)  When adding machines to a Samba 2.2 controlled domain, the 
545       'add user script' was used to create the UNIX identity of the 
546       machine trust account.  Samba 3.0 introduces a new 'add machine 
547       script' that must be specified for this purpose.  Samba 3.0 will
548       not fall back to using the 'add user script' in the absence of 
549       an 'add machine script'
550   
551
552 ######################################################################
553 Passdb Backends and Authentication
554 ##################################
555
556 There have been a few new changes that Samba administrators should be
557 aware of when moving to Samba 3.0.
558
559   1) encrypted passwords have been enabled by default in order to 
560      inter-operate better with out-of-the-box Windows client 
561      installations.  This does mean that either (a) a samba account
562      must be created for each user, or (b) 'encrypt passwords = no'
563      must be explicitly defined in smb.conf.
564     
565   2) Inclusion of new 'security = ads' option for integration 
566      with an Active Directory domain using the native Windows
567      Kerberos 5 and LDAP protocols.
568
569      MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption 
570      type which is neccessary for servers on which the 
571      administrator password has not been changed, or kerberos-enabled 
572      SMB connections to servers that require Kerberos SMB signing.
573      Besides this one difference, either MIT or Heimdal Kerberos
574      distributions are usable by Samba 3.0.
575      
576
577 Samba 3.0 also includes the possibility of setting up chains
578 of authentication methods (auth methods) and account storage 
579 backends (passdb backend).  Please refer to the smb.conf(5) 
580 man page for details.  While both parameters assume sane default 
581 values, it is likely that you will need to understand what the 
582 values actually mean in order to ensure Samba operates correctly.
583
584 The recommended passdb backends at this time are
585
586   * smbpasswd - 2.2 compatible flat file format
587   * tdbsam - attribute rich database intended as an smbpasswd
588     replacement for stand alone servers
589   * ldapsam - attribute rich account storage and retrieval 
590     backend utilizing an LDAP directory.  
591   * ldapsam_compat - a 2.2 backward compatible LDAP account 
592     backend
593     
594 Certain functions of the smbpasswd(8) tool have been split between the 
595 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8) 
596 utility.  See the respective man pages for details.
597     
598      
599 ######################################################################
600 LDAP
601 ####
602
603 This section outlines the new features affecting Samba / LDAP 
604 integration.
605
606 New Schema
607 ----------
608   
609 A new object class (sambaSamAccount) has been introduced to replace 
610 the old sambaAccount.  This change aids us in the renaming of attributes 
611 to prevent clashes with attributes from other vendors.  There is a 
612 conversion script (examples/LDAP/convertSambaAccount) to modify and LDIF 
613 file to the new schema.
614   
615 Example:
616   
617         $ ldapsearch .... -b "ou=people,dc=..." > old.ldif
618         $ convertSambaAccount <DOM SID> old.ldif new.ldif
619         
620 The <DOM SID> can be obtained by running 'net getlocalsid <DOMAINNAME>' 
621 on the Samba PDC as root.
622     
623 The old sambaAccount schema may still be used by specifying the 
624 "ldapsam_compat" passdb backend.  However, the sambaAccount and
625 associated attributes have been moved to the historical section of
626 the schema file and must be uncommented before use if needed.
627 The 2.2 object class declaration for a sambaAccount has not changed
628 in the 3.0 samba.schema file. 
629   
630 Other new object classes and their uses include:
631   
632   * sambaDomain - domain information used to allocate rids 
633     for users and groups as necessary.  The attributes are added
634     in 'ldap suffix' directory entry automatically if 
635     an idmap uid/gid range has been set and the 'ldapsam'
636     passdb backend has been selected.
637       
638   * sambaGroupMapping - an object representing the 
639     relationship between a posixGroup and a Windows
640     group/SID.  These entries are stored in the 'ldap 
641     group suffix' and managed by the 'net groupmap' command.
642     
643   * sambaUnixIdPool - created in the 'ldap idmap suffix' entry 
644     automatically and contains the next available 'idmap uid' and 
645     'idmap gid'
646     
647   * sambaIdmapEntry - object storing a mapping between a 
648     SID and a UNIX uid/gid.  These objects are created by the 
649     idmap_ldap module as needed.
650
651   * sambaSidEntry - object representing a SID alone, as a Structural
652     class on which to build the sambaIdmapEntry.
653
654     
655 New Suffix for Searching
656 ------------------------
657   
658 The following new smb.conf parameters have been added to aid in directing
659 certain LDAP queries when 'passdb backend = ldapsam://...' has been
660 specified.
661
662   * ldap suffix         - used to search for user and computer accounts
663   * ldap user suffix    - used to store user accounts
664   * ldap machine suffix - used to store machine trust accounts
665   * ldap group suffix   - location of posixGroup/sambaGroupMapping entries
666   * ldap idmap suffix   - location of sambaIdmapEntry objects
667
668 If an 'ldap suffix' is defined, it will be appended to all of the 
669 remaining sub-suffix parameters.  In this case, the order of the suffix
670 listings in smb.conf is important.  Always place the 'ldap suffix' first
671 in the list.  
672
673 Due to a limitation in Samba's smb.conf parsing, you should not surround 
674 the DN's with quotation marks.
675
676
677 IdMap LDAP support
678 ------------------
679
680 Samba 3.0 supports an ldap backend for the idmap subsystem.  The 
681 following options would inform Samba that the idmap table should be
682 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
683 dc=org" partition.
684
685  [global]
686     ...
687     idmap backend     = ldap:ldap://onterose/
688     ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
689     idmap uid         = 40000-50000
690     idmap gid         = 40000-50000
691
692 This configuration allows winbind installations on multiple servers to
693 share a uid/gid number space, thus avoiding the interoperability problems
694 with NFS that were present in Samba 2.2.
695     
696
697
698 ######################################################################
699 Trust Relationships and a Samba Domain
700 ######################################
701
702 Samba 3.0.0beta2 is able to utilize winbindd as the means of 
703 allocating uids and gids to trusted users and groups.  More
704 information regarding Samba's support for establishing trust 
705 relationships can be found in the Samba-HOWTO-Collection included
706 in the docs/ directory of this release.
707
708 First create your Samba PDC and ensure that everything is 
709 working correctly before moving on the trusts.
710
711 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
712 4.0 domain named WINDOWS:
713
714   1) create the trust account for SAMBA in "User Manager for Domains"
715   2) connect the trust from the Samba domain using
716      'net rpc trustdom establish GLASS'
717
718 To create a trustlationship with SAMBA as the trusted domain:
719
720   1) create the initial trust account for GLASS using
721      'smbpasswd -a -i GLASS'.  You may need to create a UNIX
722      account for GLASS$ prior to this step (depending on your
723      local configuration).
724   2) connect the trust from a WINDOWS DC using "User Manager
725      for Domains"
726
727 Now join winbindd on the Samba PDC to the SAMBA domain using
728 the normal steps for adding a Samba server to an NT4 domain:
729 (note that smbd & nmbd must be running at this point)
730
731    root# net rpc join -U root
732    Password: <enter root password from smbpasswd file here>
733
734 Start winbindd and test the join with 'wbinfo -t'.
735
736 Now test the trust relationship by connecting to the SAMBA DC
737 (e.g. POGO) as a user from the WINDOWS domain:
738
739    $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
740    Password:
741
742 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
743
744    $ smbclient //crystal/netlogon -U root -W WINDOWS
745    Password:
746
747 ######################################################################
748 Changes in Winbind
749 ##################
750
751 Beginning with Samba3.0.0beta3, winbindd has been given new account
752 manage functionality equivalent to the 'add user script' family of
753 smb.conf parameters.  The idmap design has also been changed to 
754 centralize control of foreign SID lookups and matching to UNIX 
755 uids and gids.
756
757
758 Brief Description of Changes
759 ----------------------------
760
761 1) The sid_to_uid() family of functions (smbd/uid.c) have been 
762    reverted to the 2.2.x design.  This means that when resolving a 
763    SID to a UID or similar mapping:
764
765         a) First consult winbindd
766         b) perform a local lookup only if winbindd fails to
767            return a successful answer
768
769    There are some variations to this, but these two rules generally
770    apply.
771
772 2) All idmap lookups have been moved into winbindd.  This means that
773    a server must run winbindd (and support NSS) in order to achieve
774    any mappings of SID to dynamically allocated UNIX ids.  This was
775    a conscious design choice.
776
777 3) New functions have been added to winbindd to emulate the 'add user 
778    script' family of smbd functions without requiring that external
779    scripts be defined.  This functionality is controlled by the 'winbind 
780    enable local accounts' smb.conf parameter (enabled by default).
781
782    However, this account management functionality is only supported 
783    in a local tdb (winbindd_idmap.tdb).  If these new UNIX accounts 
784    must be shared among multiple Samba servers (such as a PDC and BDCs), 
785    it will be necessary to define your own 'add user script', et. al.
786    programs that place the accounts/groups in some form of directory
787    such as NIS or LDAP.  This requirement was deemed beyond the scope
788    of winbind's account management functions.  Solutions for 
789    distributing UNIX system information have been deployed and tested 
790    for many years.  We saw no need to reinvent the wheel.
791
792 4) A member of a Samba controlled domain running winbindd is now able 
793    to map domain users directly onto existing UNIX accounts while still
794    automatically creating accounts for trusted users and groups.  This
795    behavior is controlled by the 'winbind trusted domains only' smb.conf
796    parameter (disabled by default to provide 2.2.x winbind behavior).
797
798 5) Group mapping support is wrapped in the local_XX_to_XX() functions
799    in smbd/uid.c.  The reason that group mappings are not included
800    in winbindd is because the purpose of Samba's group map is to
801    match any Windows SID with an existing UNIX group.  These UNIX
802    groups can be created by winbindd (see next section), but the
803    SID<->gid mapping is retreived by smbd, not winbindd.
804
805
806 Examples
807 --------
808
809 * security = server running winbindd to allocate accounts on demand
810
811 * Samba PDC running winbindd to handle the automatic creation of UNIX
812   identities for machine trust accounts
813
814 * Automtically creating UNIX user and groups when migrating a Windows NT
815   4.0 PDC to a Samba PDC.  Winbindd must be running when executing
816   'net rpc vampire' for this to work.
817
818    
819 ######################################################################
820 Known Issues
821 ############
822
823 * There are several bugs currently logged against the 3.0 codebase
824   that affect the use of NT 4.0 GUI domain management tools when run
825   against a Samba 3.0 PDC.  This bugs should be released in an early 
826   3.0.x release.
827
828 Please refer to https://bugzilla.samba.org/ for a current list of bugs 
829 filed against the Samba 3.0 codebase.
830
831
832 ######################################################################
833 Reporting bugs & Development Discussion
834 #######################################
835
836 Please discuss this release on the samba-technical mailing list or by
837 joining the #samba-technical IRC channel on irc.freenode.net.
838
839 If you do report problems then please try to send high quality
840 feedback. If you don't provide vital information to help us track down
841 the problem then you will probably be ignored.  
842
843 A new bugzilla installation has been established to help support the 
844 Samba 3.0 community of users.  This server, located at 
845 https://bugzilla.samba.org/, has replaced the older jitterbug server 
846 previously located at http://bugs.samba.org/.
847