1 =============================
2 Release Notes for Samba 3.0.7
4 =============================
6 This is the latest stable release of Samba. This is the version
7 that production Samba servers should be running for all
8 current bug-fixes. There have been several important issues
9 fixes since the 3.0.6 release. See the "Changes" section for
10 details on exact updates.
12 Common bugs fixed in 3.0.7 include:
14 o Fixes for two Denial of Service vulnerabalities
15 (CVE ID# CAN-2004-0807 & CAN-2004-0808).
16 o Winbind failure to return user entries under certain
18 o Syntax errors in the OpenLDAP schema file (samba.schema).
19 o Printing errors caused by not setting default values
20 for the various printing commands.
23 ######################################################################
29 winbind enable local accounts disabled by default
36 o Jeremy Allison <jra@samba.org>
37 * Fix parsing of names ending in dot and a few other error
39 * BUG 1674: Move the symlinks checks into reduce_name().
40 * Fix memleak when checking the valid names smb.conf option.
41 * Fix memleak on error return path in the file open code.
42 * More paranoia checks in the hash2 mangling code.
43 * Fix syntax error in configure.in.
44 * Match Win2k3's behavior for pathname parsing error returns.
45 * Make nmbd more robust against bad netbios packets
47 * Add more checks for invalid ASN.1 packets for SPNEGO packets
51 o Andrew Bartlett <abartlet@samba.org>
52 * Janitor work in loadparm.c -- remove unused parameters.
55 o Gerald Carter <jerry@samba.org>
56 * BUG 1464: Ensure that printing commands are initialized even
57 if the 'printing' parameter is not explicitly set.
58 * Resolve name conflict on DEC OSF-5.1 (inspired by patch from
59 Adharsh Praveen <rprav@india.hp.com>)
60 * Work around parsing error in the print change notify code.
61 * remove duplicate declaration of getprintprocdir from
63 * Only use sAMAccountName and not userPrincipalName when looking
64 up a username in AD since the breaks winbindd (lookup_name()
65 only works with the sAMAccountName).
66 * Fix bug with winbindd_getpwnam() caused by Microsoft DC's not
67 filling in the username in the user_info3.
68 * Fix logic bug in the check for creating a user's home directory
69 in register_vuid(); caused home directory to be mismatched to
70 the first share in smb.conf under certain conditions.
71 * BUG 1656: rename auto.a to auto.smb.
72 * Ensure that we assign our pid to print jobs (and not our
73 parent's pid); ensures that spooling jobs from dead smbds
74 are removed from the tdb.
75 * Disable 'winbind enable local accounts' by default.
76 * Adding some initial checks for DragonFly (same as
80 o Guenther Deschner <gd@samba.org>
81 * Use SMB_ASSERT() to track down NULL printer names in
83 * Revert fix for BUG 1474 to avoid unnecessary packaging
87 o Olaf Flebbe <o.flebbe@science-computing.de>.
88 * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3
90 * BUG 1626: More compile fixes.
93 o Rob Foehl <rwf@loonybin.net>
94 * Don't clear the PRINT_ATTRIBUTE_PUBLISHED was getting reset
95 by attempts to sanitize the defined attributes.
98 o SATOH Fumiyasu <fumiya@miraclelinux.com>
99 * BUG 1546: Preserve errno in MB strupper_m/strlower_m.
102 o Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>.
103 * BUG 1657: Remove used initialized variable,
104 * BUG 1658: Add a little bit of const.
107 o Volker Lendecke <vl@samba.org>
108 * If there's garbage in the pidfile, we should not panic
109 but assume that no one else is around. We can't find the
113 o Jim McDonough <jmcd@us.ibm.com>
114 * Fixup format string in the tdb error messages.
117 o Jonas Olsson <lexicon@lysator.liu.se>
118 * BUG 1416: Don't reuncture a users list to NGROUPS_MAX when
119 reporting the list in usrmgr.exe.
122 o Tim Potter <tpot@samba.org>
123 * Fix out-of-tree builds (problem with the script to generate
124 the svn version number).
125 * BUG 1360: Need to use -Wl when passing flags to the linker.
126 * BUG 1741: Define a struct nss_groupsbymem for HPUX 11 which
127 doesn't have one of its own.
129 o Simo Source <idra@samba.org>
130 * Fixup compile issues on AIX caused by broken strlen() and
132 * Update debian packaging files.
135 o Dimitri van der Spek <dwspek@aboveit.nl>
136 * Use the correct counter when copying group rids from the
137 user_info3 struct in pam_winbind.
140 o Qiao Yang <qyang@stbernard.com>
141 * BUG 1622: Only cache the user
144 Changes for older versions follow below:
146 --------------------------------------------------
148 =============================
149 Release Notes for Samba 3.0.6
151 =============================
153 Common bugs fixed in 3.0.6 include:
155 o Schannel failure in winbindd.
156 o Numerous memory leaks.
157 o Incompatibilities between the 'write list' and 'force user'
159 o Premature optimization of the open_directory() internal
160 function that broke tools such as the ArcServe backup
161 agent, Macromedia HomeSite, and Robocopy.
162 o Corrupt workgroup names in nmbd's browse.dat.
163 o Sharing violation errors commonly seen when opening
164 when serving Microsoft Office documents from a Samba
166 o Browsing problems caused by an apostrophe (') in the
167 computer's description field.
168 o Problems creating special file types from UNIX CIFS
169 clients and enabling 'unix extensions'.
170 o Fix stalls in smbd caused by inaccessible LDAP servers.
171 o Remove various memory leaks.
172 o Fix issues in the password lockout feature.
174 New features introduced in this release include:
176 O Support symlinks created by CIFS clients which
177 can be followed on the server.
178 o Using a cups server other than localhost.
179 o Maintaining the service principal entry in the system
180 keytab for integration with other kerberized services.
181 Please refer to the 'use kerberos keytab' entry in
182 smb.conf(5). When using the heimdal kerberos libraries,
183 you must also specify the following in /etc/krb5.conf:
185 default_keytab_name = FILE:/etc/krb5.keytab
186 o Support for maintaining individual printer names
187 stored separately from the printer's sharename.
188 o Support for maintaining user password history.
189 o Support for honoring the logon times for user in a
192 --------------------------------------------
193 unix extensions = yes (default) and symlinks
194 --------------------------------------------
196 Beginning with Samba 3.0.6pre1 (formerly known as 3.0.5pre1),
197 clients supporting the UNIX extensions to the CIFS protocol
198 can create symlinks to absolute paths which will be **followed**
199 by the server. This functionality has been requested in order
200 to correctly support certain applications when the user's home
201 directory is mounted using some type of CIFS client (e.g. the
202 cifsvfs in the Linux 2.6 kernel).
204 If this behavior is not acceptable for your production environment
205 you can set 'wide links = no' in the specific share declaration in
206 the server's smb.conf. Be aware that disabling wide link support
207 out of a share in Samba may impact the server's performance due
208 to the fact that smbd will now have to check each path additional
209 times before traversing it.
211 ------------------------
212 Password History Support
213 ------------------------
215 The new password history feature allows smbd to check the new
216 password in password change requests against a list of the user's
217 previous passwords. The number of previous passwords to save can
218 be set using pdbedit (4 in this example):
220 root# pdbedit -P "password history" -C 4
222 When using the ldapsam passdb backend, it is vital to secure the
223 following attributes from access by non-administrative users:
227 * sambaPasswordHistory
229 You should refer to your directory server's documentation on how
230 to implement this restriction.
239 Parameter Name Action
240 -------------- ------
242 defer sharing violations New
243 force unknown acl user New
245 printcap cache time New
246 use kerberos keytab New
250 o Jeremy Allison <jra@samba.org>
251 * Correct path parsing bug that broke DeletePrinterDriverEx().
252 * Fix bugs in check_path_syntax() caught by asserts.
253 * Internal change - rearrange internal global case setting
254 variables to a per connection basis.
255 * BUG 1345: Fix premature optimization in unix_convert().
256 * Allow clients to truncate a locked file.
257 * BUG 1319: Always check to see if a user as write access
258 to a share, even when 'force user' is set.
259 * Fix specific case of open that doesn't cause oplock break,
261 * Correct sid type is WKN_GROUP, not alias. Added some
262 more known types (inspired by patch from Jianliang Lu).
263 * Allow creation of absolute symlink paths via CIFS clients.
264 * Fix charset bug in when invoking send_mailslot().
265 * When using widelinks = no, use realpath to canonicalize
266 the connection path on connection create for the user.
267 * Enhance stat open code.
268 * Fix unix extensions mknod code path.
269 * Allow unix domain socket creation via unix extensions.
270 * Auto disable the 'store dos attribute' parameter if the
271 underlying filesystem doesn't support EAs.
272 * Implement deferred open code to fix a bug with Excel files
274 * BUG 1427: Catch bad path errors at the right point. Ensure
275 all our pathname parsing is consistent.
276 * Fix SMB signing error introduced by the new deferred open
278 * Change default setting for case sensitivity to "auto". (see
279 commit message -- r1154 -- for details).
280 * Add new remote client arch -- CIFSFS.
281 * Allow smbd to maintain the service principal entry in the
282 system keytab file (based on patch Dan Perry <dperry@pppl.gov>,
283 Guenther Deschner, et. al.).
284 * Fix longstanding memleak bug with logfile name.
285 * Fix incorrect type in printer publishing (struct uuid,
287 * Heimdal compile fixes after introduction of the new ketyab
289 * Ensure we check attributes correctly on rename request.
290 * Ensure we defer a sharing violation on rename correctly.
291 * BUG 607: Ensure we remove DNS and DNSFAIL records immediately
293 * Fix bogus error message when using "mangling method = hash"
295 * Turn on sendfile by default for non-Win9x clients.
296 * Handle non-io opens that cause oplock breaks correctly.
297 * Ensure ldap replication sleep time is not more than 5 seconds.
298 * Add support for storing a user's password history.
299 LDAP portion of the code was based on a patch from
300 Jianliang Lu <j.lu@tiesse.com>.
301 * Correct memory leaks found in the password change code.
302 * Fix support for the mknod command with the Linux CIFS client.
303 * Remove support for passing the new password to smbpasswd
304 on the command line without using the -s option.
305 * Ensure home directory service number is correctly reused
306 (inspired by patches from Michael Collin Nielsen
307 <michael@hum.aau.dk>).
308 * Fix to stop printing accounts from resetting the bas
309 password and account lockout flags.
310 * If a account was locked out by an admin (and has a bad
311 password count of zero) leave it locked out until an admin
312 unlocks it (but log a message).
313 * Ensure we return the same ACL revision on the wire that
315 * BUG 1578: Hardcode replacement for invalid characters as '_'
316 (based on fix from Alexander E. Patrakov <patrakov@ums.usu.ru>).
317 * Fix hashed password history for LDAP backends.
318 * Enforce logon hours restrictions if confiogured (based on code
319 from Richard Renard <rrenard@idealx.com>).
320 * BUG 1606: Force smbd to disable sendfile with DOS clients
321 and ensure that the chained header is filled in for ...&X
323 * BUG 1602: Fix access to shares when all symlink support
328 o Tom Alsberg <alsbergt@cs.huji.ac.il>
329 * Allow pdbedit to export a single user from a passdb backend.
332 o Andrew Bartlett <abartlet@samba.org>
333 * Fix parsing bug in GetDomPwInfo().
334 * Fix segfault in 'ntlm_auth --diagnostics'.
335 * Re-enable code to allow sid_to_gid() to perform a group
336 mapping lookup before checking with winbindd.
337 * Fix memory leak in the trans2 signing code.
338 * Allow more flexible GSS-SPENGO client and server operation
340 * Improve smbd's internal random number generation.
341 * Fix a few outstanding long password changes in smbd.
342 * Fix LANMAN2 session setup code.
345 o Eric Boehm <boehm@nortelnetworks.com>
346 BUG 703: Final touches on netgroup case lookups.
349 o Jerome Borsboom <j.borsboom@erasmusmc.nl>
350 * Ensure error status codes don't get overwritten in
351 lsa_lookup_sids() server code.
352 * Correct bug that caused smbd to overwrite certain error
353 codes when returning up the call stack.
354 * Ensure the correct sid type returned for builtin sids.
357 o Gerald Carter <jerry@samba.org>
358 * Fix a few bugs in the Fedora Packaging files.
359 * Fix for setting the called name to by our IP if the
360 called name was *SMBSERVER and *SMBSERV. Fixes issue
361 with connecting to printers via \\ip.ad.dr.ess\printer
363 * BUG 1315: fix for schannel client connections to servers
364 when we haven't specifically negotiated AUTH_PIPE_SEAL.
365 * Allow PrinterDriverData valuenames with embedded backslashes
366 (Fixes bug with one of the Konica Fiery drivers).
367 * Fixed string length miscalculation in netbios names that
368 resulted in corrupt workgroup names in browse.dat.
369 * When running smbd as a daemon, launch child smbd to update
370 the lpq cache listing in the background.
371 * Allow printers "Printers..." folder to be renamed to a string
372 other than the share name.
373 * Allow winbindd to use domain trust account passwords when
374 running on a Samba DC to establish an schannel to remote
376 * Fix bad merge and ensure that we always use tdb_open_log()
377 instead of tdb_open_ex() (the former call enforce the 'use
379 * BUG 1221: revert old change that used single and double
380 quotes as delimeters in next_token(), and change
381 print_parameter() to print out parm values surrounded by
382 double quotes (instead of single quotes).
383 * Prevent home directories added during the SMBsesssetup&X from
384 being removed as unused services.
385 * Invalidate the print object cache for open printer handles when
386 smbd receives a message that an attribute on a given printer
388 * Cause the configure script to exit if --enable-cups[=yes] is
389 defined and the system does not have the cups devel files
391 * BUG 1297: Prevent map_username() from being called twice
393 * Ensure that we use the userPrincipalName AD attribute
394 value for LDAP SASL binds.
395 * Ensure we remove the tdb entry when deleting a job that
397 * BUG 1520: Work around bug in Windows XP SP2 RC2 where the
398 client sends a FindNextPrintChangeNotify() request without
399 previously sending a FindFirstPrintChangeNotify(). Return
400 the same error code as Windows 2000 SP4.
401 * BUG 1516: Manually declare ldap_open_with_timeout() to
402 workaround compiler errors on IRIX (or other systems without
404 * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from
406 * Corrected syntax error in the OID for sambaUnixIdPool,
407 sambaSidEntry, & sambaIdmapEntry object classes.
408 * Tighten the cache consistency with the ntprinters.tdb entry
409 an the in memory cache associated with open printer handles.
410 * Make sure that register_messages_flags() doesn't overwrite
411 the originally registered flags.
414 o Fabien Chevalier <fabien.chevalier@supelec.fr>
415 * Debian BUG 252591: Ensure that the return value from the
416 number of available interfaces is initialized in case no
417 interfaces are actually available.
420 o Guenther Deschner <gd@sernet.de>
421 * Implement 'rpcclient setprintername'.
422 * Add local groups to the user's NT_TOKEN since they are
423 actually supported now.
424 * Heimdal compile fixes after introduction of the new keytab
426 * Correctly honor the info level parameter in 'rpcclient
428 * Reintroduce 'force unknown acl user' parameter. When getting a
429 security descriptor for a file, if the owner sid is not known,
430 the owner uid is set to the current uid. Same for group sid.
431 * Ensure that REG_SZ values in the SetPrinterData actually
432 get written in UNICODE strings rather than ASCII.
433 * Ensure that the last kerberos error return is not invalid.
434 * Display share ACL entries from rpcclient.
435 * Correct infinite loop in pam_winbind's verification of
436 group membership in the 'other sids' field in the user_info3
440 o Fabian Franz <FabianFranz@gmx.de>
441 * Support specifying a port in the device URL passed to smbspool.
444 o Steve French <sfrench@us.ibm.com>
445 * Handle -S and user mount parms in mount.cifs.
446 * Fix user unmount of shares mount with suid mount.cifs.
447 * prevent infinite recusion in reopen_logs() when expanding
448 the smb.conf variable %I.
451 o Bjoern Jacke <bj@sernet.de>
452 * Install libsmbclient into $(LIBDIR), not into hard coded
453 ${prefix}/lib. This helps amd64 systems with /lib and /lib64
454 and an explicit configure --libdir setting.
457 o <kawasa_r@itg.hitachi.co.jp>
458 * Correct more memory leaks and initialization bugs.
459 * Fix bug that prevented core dumps from being generated
461 * Connect to the winbind pipe in non-blocking mode to
462 prevent processes from hanging.
466 o Stephan Kulow <coolo@suse.de>
467 * Fix crash bug in libsmbclient.
470 o Volker Lendecke <vl@samba.org>
471 * Added vfs_full_audit module.
472 * Add vfs_afsacl.c which can display & set AFS acls via
473 the NT security editor.
474 * Fix crash bug caused by trying to Base64 encode a NULL string.
475 * Fix DOS error code bug in reply_chkpath().
476 * Correct misunderstanding of the max_size field in
477 cli_samr_enum_als_groups; it is more like an account_control
478 field with individual bits what to retrieve.
479 * Implement 'net rpc group rename' -- rename domain groups.
480 * Implement the 'cups server' option. This makes it possible
481 to have virtual smbd's connect to different cups daemons.
482 * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
483 * Fix sid_to_gid() calls in winbindd to prevent loops.
484 * Ensure that local_sid_to_gid() sets the type of the group on
486 * Make sure that the clients are given back the IP address to
487 which they connected in the case of a multi-homed host. Only
488 affects strings the spoolss printing replies.
489 * Fix the bad password lockout. This has not worked as pdb_ldap.c
490 did not ask for the modifyTimestamp attribute, so it could
491 not find it. Try not to regress by not putting that attrib
492 in the main list but append it manually for the relevant searches.
493 * Fix two memleaks in login_cache.c.
494 * fixes memory bloat when unmarshalling strings.
495 * Fix compile errors using gcc 3.2 on SuSE 8.2.
496 * Fix the build for systems without kerberos headers.
497 * Allow winbindd to handle authentication requests only when
498 started without either an 'idmap uid' or 'idmap gid' range.
499 * Fix the build for systems without ldap headers.
500 * Fix interaction between share security descriptor and the
501 'read only' smb.conf option.
502 * Fix bug that caused _samr_lookupsids() with more than 32 (
503 MAX_REF_DOMAINS) SIDs to fail.
504 * Allow the 'idmap backend' parameter to accept a list of
505 LDAP servers for failover purposes.
506 * Revert code in smbd to remove a tdb when it has become
508 * Add paranoid checks when mapping SIDs to a uid/gid to
509 ensure that the type is correct.
510 * Initial work on getting client support for sending mailslot
512 * Add 'ldap timeout' parameter.
513 * Dont always uppercase 'afs username map'.
514 * Expand aliases for getusersids as well.
515 * Improved NT->AFS ACL mapping VFS module.
518 o Herb Lewis <herb@samba.org>
519 * Add the acls debug class.
520 * Fix logic bug in netbios name truncate routine.
521 * Fix smbd crash caused by smbtorture IOCTL test.
522 * Fix errno tromping before calling iconv to reset the
524 * need to leave empty dacl so we can remove last ACE.
527 o Jianliang Lu <Jianliang.Lu@getronics.com>
528 * Fix to stop smbd hanging on missing group member in
530 * Make sure Samba returns the correct group types.
531 * Reset the bad password count password counts upon a successful login.
534 o Jason Mader <jason@ncac.gwu.edu>
535 * BUG 1385: Don't use non-consts in a structure initialization.
538 o Jim McDonough <jmcd@us.ibm.com>
539 * BUG 1279: SMBjobid fix for Samba print servers running on
540 Big-Endian platforms.
543 o Joe Meadows <jameadows@webopolis.com>
544 * Add optional timeout parameter to ldap open calls.
545 * Allow get_dc_list() to check the negative cache.
548 o Stefan Metzmacher <metze@samba.org>
549 * fix a configure logic bug for linux/XFS quotas when
550 using --with-sys-quotas.
551 * Use quota debug class in quota code.
552 * print out the SVN revision by configure,
555 o Buchan Milne <bgmilne@mandrake.org>
556 * Mandrake packaging fixes.
559 o Lars Mueller <lmuelle@suse.de>
560 * BUG 1279: Added 'printcap cache time' parameter.
561 * Fix afs related build issues on SuSE.
562 * Fix compiler warnings in the kerberos client code.
565 o James Peach <jpeach@sgi.com>
566 * More iconv detection fixes for IRIX.
567 * Compile fixed for systems that do not have C99/UNIX98 compliant
568 vsnprintf by default.
569 * Prevent smbd from attempting to use sendfile at all if it is
570 not supported by the server's OS.
571 * Allow SWAT to search for index.html when serving html files
576 * Implement NFS quota support on FreeBSD.
579 o Tim Potter <tpot@samba.org>
580 * BUG 1360: Use -Bsymbolic when creating shared libraries to
581 avoid conflicts with identical symbols in the global namespace
582 when loading libnss_wins.so.
585 o Richard Renard <rrenard@idealx.com>
586 * Save the current password as it is being changed into the
587 password history list.
590 o Richard Sharpe <rsharpe@samba.org>
591 * Fix error return codes on some lock messages.
592 * BUG 1178: Make the libsmbclient routines callable
594 * BUG 1333: Make sure we return an error code when
596 * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when
597 share mode locking requests fail.
600 o Simo Source <idra@samba.org>
601 * Update Debian stable & unstable packaging.
602 * Tidy up parametric options in testparm output.
605 o Richard Sharpe <rsharpe@samba.org>
606 * Add sigchild handling to winbindd to restart the child
610 o Tom Shaw <tomisfaraway@gmail.com>
611 * Use winbindd_fill_pwent() consistently.
614 o Nick Thompson <nickthompson@agere.com>
615 * Protect smbd against broken filesystems which return zero
619 o Andrew Tridgell <tridge@samba.org>
620 * Fixed bug in handling of timeout in socket connections.
623 o Nick Wellnhofer <wellnhofer@aevum.de>
624 * Prevent lp_interfaces() list from being corrupted. Fixes
625 bug where nmbd would lose the list of network interfaces
626 on the system and consequently shutdown.
629 o James Wilkinson <jwilk@alumni.cse.ucsc.edu>
630 * Fix ntlm_auth memory leaks.
633 o Jelmer Vernooij <jelmer@samba.org>
634 * Additional NT status to unix error mappings.
635 * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't
636 get duplicate symbol errors.
637 * Return an error when the last command read from stdin
639 * Prepare for better error checking in tar.
640 * BUG 1474: Fix build of --with-expsam stuff on Solaris.
643 Changes for older versions follow below:
645 --------------------------------------------------
647 =============================
648 Release Notes for Samba 3.0.5
650 =============================
652 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with
653 the exception of correcting the two security issues outlined
656 ######################## SECURITY RELEASE ########################
658 Summary: Multiple Potential Buffer Overruns in Samba 3.0.x
659 CVE ID: CAN-2004-0600, CAN-2004-0686
660 (http://cve.mitre.org/)
663 This is the latest stable release of Samba. This is the version
664 that production Samba servers should be running for all current
667 It has been confirmed that versions of Samba 3 prior to v3.0.4
668 are vulnerable to two potential buffer overruns. The individual
669 details are given below.
675 Affected Versions: Samba 3.0.2 and later
677 The internal routine used by the Samba Web Administration
678 Tool (SWAT v3.0.2 and later) to decode the base64 data
679 during HTTP basic authentication is subject to a buffer
680 overrun caused by an invalid base64 character. It is
681 recommended that all Samba v3.0.2 or later installations
682 running SWAT either (a) upgrade to v3.0.5, or (b) disable
683 the swat administration service as a temporary workaround.
685 This same code is used internally to decode the
686 sambaMungedDial attribute value when using the ldapsam
687 passdb backend. While we do not believe that the base64
688 decoding routines used by the ldapsam passdb backend can
689 be exploited, sites using an LDAP directory service with
690 Samba are strongly encouraged to verify that the DIT only
691 allows write access to sambaSamAccount attributes by a
692 sufficiently authorized user.
694 The Samba Team would like to heartily thank Evgeny Demidov
695 for analyzing and reporting this bug.
701 Affected Versions: Samba 3.0.0 and later
703 A buffer overrun has been located in the code used to support
704 the 'mangling method = hash' smb.conf option. Please be aware
705 that the default setting for this parameter is 'mangling method
706 = hash2' and therefore not vulnerable.
708 Affected Samba 3 installations can avoid this possible security
709 bug by using the default hash2 mangling method. Server
710 installations requiring the hash mangling method are encouraged
711 to upgrade to Samba 3.0.5.
714 ##################################################################
716 --------------------------------------------------
718 =============================
719 Release Notes for Samba 3.0.4
721 =============================
723 Common bugs fixed in Samba 3.0.4 include:
725 o Password changing after applying the patch described in
726 the Microsoft KB828741 article to Windows clients.
728 o Managing print jobs via Windows on Big-Endian servers.
729 o Several memory leaks in winbindd and smbd.
730 o Compile issues on AIX and *BSD.
738 o Jeremy Allison <jra@samba.org>
739 * Fix path processing for DeletePrinterDriverEx().
740 * BUG 1303: Fix for Microsoft hotfix MS04-011 password change
744 o Andrew Bartlett <abartlet@samba.org>
745 * Fix alignment bug in GetDomPwInfo().
748 o Alexander Bokovoy <ab@samba.org>
749 * Fix utime[s]() issues in smbwrapper on systems
750 that can boot both the 2.4 and 2.6 Linux kernels.
753 o Gerald Carter <jerry@samba.org>
754 * Fedora packaging fixes.
755 * BUG 1302: Fix seg fault by not trying to optimize a list of
756 invalid gids using the wrong array size.
757 * BUG 1309: fix seg fault caused by trying to strdup(NULL)
758 seen when 'security = share'.
759 * Fix problems when using IBM's compiler on AIX.
760 * Link Developer's Guide, Example Guide, and multi-page HOWTO
761 into SWAT's welcome page.
762 * BUG 1293: fix double free in printer publishing code.
765 o Wim Delvaux <wim.delvaux@adaptiveplanet.com>
766 * Fix for handling timeouts in socket connections.
769 o Michel Gravey <michel.gravey@optogone.com>
770 * BUG 483: patch from to fix password hash creation in SWAT.
773 o Volker Lendecke <vl@samba.org>
774 * Close the open NT pipes before the tdis.
775 * Fix AFS related build issues.
776 * Handle error conditions when base64 encoding a blob of 0 bytes.
779 o Herb Lewis <herb@samba.org>
780 * Added 'acls' debug class.
782 o kawasa_r@itg.hitachi.co.jp
783 * Multiple variable initialization and memory leak fixes.
786 o Stephan Kulow <coolo@suse.de>
787 * Fix string length bug in libsmbclient that caused KDE's
789 * BUG 429: More libsmbclient fixes.
792 o Jim McDonough <jmcd@us.ibm.com>
793 * BUG 1007, 1279: Store the print job using a little-endian key.
797 o Compile fix for OpenBSD (ENOTSUP not supported).
800 o Stefan Metzmacher <metze@samba.org>
801 * Correct bug in disks quota views from explorer.
804 o Tim Potter <tpot@samba.org>
805 BUG 1305: Correct debug output.
808 o Richard Sharpe <rsharpe@samba.org>
809 * Fix incorrect error code mapping.
812 o Jelmer Vernooij <jelmer@samba.org>
813 * Add additional NT_STATUS errorm mappings.
816 Changes for older versions follow below:
818 --------------------------------------------------
820 =============================
821 Release Notes for Samba 3.0.3
823 =============================
826 Common bugs fixed in Samba 3.0.3 include:
828 o Crash bugs and change notify issues in Samba's printing code.
829 o Honoring secondary group membership on domain member servers.
830 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
831 o Substitution errors for %[UuGg] in smb.conf.
832 o winbindd crashes when using ADS security mode.
833 o SMB signing errors.
834 o Delays in winbindd startup caused by unnecessary
835 connections to trusted domain controllers.
836 o Various small memory leaks.
837 o Winbindd failing due to expired Kerberos tickets.
839 New features introduced in Samba 3.0.3 include:
841 o Improved support for i18n character sets.
842 o Support for account lockout policy based on
843 bad password attempts.
844 o Improved support for long password changes (>14
845 characters) and strong password enforcement.
846 o Support for Windows aliases (i.e. nested groups).
847 o Experimental support for storing DOS attribute on files
848 and folders in Extended Attributes.
849 o Support for local nested groups via winbindd.
850 o Specifying options to be passed directly to the CUPS libraries.
852 Please be aware that the Samba source code repository was
853 migrated from CVS to Subversion on April 4, 2004. Details on
854 accessing the Samba source tree via anonymous svn can be found
855 at http://svn.samba.org/samba/subversion.html.
863 Parameter Name Action
864 -------------- ------
868 store dos attributes New
870 winbind nested groups New
876 o Jeremy Allison <jra@samba.org>
877 * Ensure that Kerberos mutex is always properly unlocked.
878 * Removed Heimdal "in-memory keytab" support.
879 * Fixup the 'multiple-vuids' bugs in our server code.
880 * Correct return code from lsa_lookup_sids() on unmapped
881 sids (based on work by vl@samba.org).
882 * Fix the "too many fcntl locks" scalability problem
884 * Fixup correct (as per W2K3) returns for lookupsids
885 as well as lookupnames.
886 * Fixups for delete-on-close semantics as per Win2k3 behavior.
887 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
888 * Fix "unable to initialize" bug when smbd hasn't been run with
889 new system and a user is being added via pdbedit/smbpasswd.
890 * Added NTrename SMB (0xA5).
891 * Fixup correct timeout values for blocking lock timeouts.
892 * Fix various bugs reported by 'gentest'.
893 * More locking fixes in the case where we own the lock.
894 * Fix up regression in IS_NAME_VALID and renames.
895 * Don't set allocation size on directories.
896 * Return correct error code on fail if file exists and target
898 * Added client "hardlink" comment to test doing NT rename with
899 hard links. Added hardlink_internals() code - UNIX extensions
900 now use this as well.
901 * Use a common function to parse all pathnames from the wire for
902 much closer emulation of Win2k3 error return codes.
903 * Implement check_path_syntax() and rewrite string sub
904 functions for better multibyte support.
905 * Ensure msdfs referrals are multibyte safe.
906 * Allow msdfs symlink syntax to be more forgiving.
907 eg. sym_link -> msdfs://server/share/path/in/share
908 or sym_link -> msdfs:\\server\share\path\in\share.
909 * Cleanup multibyte netbios name support in nmbd ( based on patch
910 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
911 * Fix check_path_syntax() for multibyte encodings which have
912 no '\' as second byte (based on work by ab@samba.org.
913 * Fix the "dfs self-referrals as anonymous user" problem
914 (based on patch from vl@samba.org).
915 * BUG 1064: Ensure truncate attribute checking is done correctly
916 on "hidden" dot files.
917 * Fix bug in anonymous dfs self-referrals again.
918 * Fix get/set of EA's in client library
919 * Added support for OS/2 EA's in smbd server.
920 * Added 'ea support' parameter to smb.conf.
921 * Added 'store dos attributes' parameter to smb.conf.
922 * Fix wildcard identical rename.
923 * Fix reply_ctemp - make compatible with w2k3.
924 * Fix wildcard unlink.
925 * Fix wildcard src with wildcard dest renames.
926 * BUG 1139: Fix based on suggestion by jdev@panix.com.
927 swap lookups for user and group - group will do an
928 algorithmic lookup if it fails, user won't.
929 * Make EA's lookups case independent.
930 * Fix SETPATHINFO in 'unix extensions' support.
931 * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for
932 the UNIX info levels, and the short case preserve names.
935 o Timur Bakeyev <timur@com.bat.ru>
936 * BUG 1144: only set --with-fhs when the argument is 'yes'
937 * BUG 1152: Allow python modules to build despite libraries added
938 to LDFLAGS instead of LDPATH.
939 * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
942 o Craig Barratt <cbarratt@users.sourceforge.net>
943 * BUG 389: Allow multiple exclude arguments with smbclient
944 tar -Xr options (better support for Amanda backup client).
947 o Andrew Bartlett <abartlet@samba.org>
948 * Include support for linking with cracklib for enforcing strong
950 * Add support for >14 character password changes from Windows
952 * Add 'admin set password' capability to 'net rpc'.
953 * Allow 'net rpc samdump' to work with any joined domain
954 regardless of smb.conf settings.
955 * Use an allocated buffer for count_chars.
956 * Add sanity checks for changes in the domain SID in an
958 * Implement python unit tests for Samba's multibyte string
960 * Remove 'unicode' smb.conf option.
961 * BUG 1138: Fix support for 'optional' SMB signing and other
963 * BUG 169: Fix NTLMv2-only behavior.
964 * Ensure 'net' honors the 'netbios name' in the smb.conf by
966 * Support SMB signing on connections using only the LANMAN
967 password and generate the correct the 'session key' for these
969 * Implement --required-membership-of=, an ntlm_auth option
970 that restricts all authentication to members of this particular
972 * Improve our fall back code for password changes.
973 * Only send the ntlm_auth 'ntlm-server-1' helper client a '.'
974 after the server had said something (such as an error).
975 * Add 'ntlm-server-1' helper protocol to ntlm_auth.
978 o Alexander Bokovoy <ab@samba.org>
979 * Fix incorrect size calculation of the directory name
981 * Fix problems with very long filenames in both smbd and smbclient
982 caused by truncating paths during character conversions.
983 * Fix smbfs problem with Tree Disconnect issued before smbfs
987 o Gerald Carter <jerry@samba.org>
988 * BUG 850: Fix 'make installmodules' bug on True64.
989 * BUG 66: mark 'only user' deprecated.
990 * Remove corrupt tdb and shutdown (only for printing tdbs,
991 connections, sessionid & locking).
992 * decrement smbd counter in connections.tdb in smb_panic().
993 * RedHat specfile updates.
994 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
995 * BUG 1147; bad pointer case in get_stored_queue_info()
997 * BUG 761: read the config file before initialized default
998 values for printing options; don't default to bsd printing
1000 * Allow the 'printing' parameter to be set on a per share basis.
1001 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
1002 * BUG 848: don't create winbind local users/groups that already
1004 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
1006 * BUG 488: fix the 'show client in col 1' button and correctly
1007 enumerate active connections.
1008 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
1009 problem when storing the updating pid for the lpq cache.
1010 * BUG 1007 (partial): Fix print change notify bugs.
1011 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
1012 and winbind use default domain = yes. Also ensures that
1013 * BUG 1151: Ensure that winbindd users are passed through
1015 * Fix client rpc binds for ASU derived servers (pc netlink,
1017 * BUG 417, 1128: Ensure that the current_user_info is set
1018 consistently so that %[UuGg] is expanded correctly.
1019 * BUG 1195: Fix crash in winbindd when the ADS server is
1021 * BUG 1185: Set reconnect time to be the same as the
1022 'winbind cache time'.
1023 * Ensure that we return the sec_desc in smb_io_printer_info_2.
1024 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
1025 * BUG 1095: Honor the '-l' option in smbclient.
1026 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
1028 * Ensure server schannel uses the auth level requested by the
1030 * Removed --with-cracklib option due to potential crash issue.
1031 * Fix -lcrypto linking problem with wbinfo.
1032 * BUG 761: allow printing parameter to set defaults on a per
1034 * Add 'cups options' parameter to allow raw printing without
1035 changing /etc/cups/cupsd.conf.
1036 * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and
1038 * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
1039 * BUG 1288: resolve any machine netbios name (0x00) and not just
1041 * BUG 1199: Fix potential symlink issue in
1042 examples/printing/smbprint.
1045 o Robert Dahlem <Robert.Dahlem@gmx.net>
1046 * BUG 1048: Don't return short names when when 'mangled names = no'
1049 o Guenther Deschner <gd@suse.com>
1050 * Remove hard coded attribute name in the ads ranged retrieval
1052 * Add --with-libdir and --with-mandir to autoconf script.
1055 o Bostjan Golob <golob@gimb.org>
1056 * BUG 1046: Fix getpwent_list() so that the username is not
1057 overwritten by other fields.
1060 o Landon Fuller <landonf@opendarwin.org>
1061 * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller)
1062 to fix user/group enumeration on systems whose libc does not
1063 call setgrent() before trying to enumerate users (i.e.
1067 o Steve French <sfrench@us.ibm.com>
1068 * Update mount.cifs to version 1.1.
1069 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
1070 * Fixes to minor security bug in the mount helper.
1071 * Fix credential file mounting for cifs vfs.
1072 * Fix free of incremented pointer in cifsvfs mount helper.
1073 * Fix path canonicalization of the mount target path and help
1074 text display in the cifs mount helper.
1075 * Add missing guest mount option for mount.cifs.
1078 o SATOH Fumiyasu <fumiya@miraclelinux.com>
1079 * BUG 1055; formatting fixes for 'net share'.
1080 * BUG 692: correct truncation of share names and workgroup
1082 * BUG 1088: use strchr_m() for query_host (smbclient -L).
1083 * Patch from to internally count characters correctly.
1086 o Paul Green <paulg@samba.org>
1087 * Update VOS _POSIX_C_SOURCE macro to 200112L.
1088 * Fix bug in configure.ion by moving the first use of
1089 AC_CHECK_HEADERS so it is always executed.
1090 * Fix configure.in to only use $BLDSHARED to select whether to
1091 build static or shared libraries.
1094 o Pat Haywarrd <Pat.Hayward@propero.net>
1095 * Make the session_users list dynamic (max of 128K).
1098 o Cal Heldenbrand <calzplace@yahoo.com>
1099 * Fix for for 'pam_smbpass migrate' functionality.
1102 o Chris Hertel <crh@samba.org>
1103 * fix enumeration of shares 12 characters in length via
1107 o Ulrich Holeschak <ulrich@holeschak.de>
1108 * BUG 932: fix local password change using pam_smbpass
1111 o Krischan Jodies <kj@sernet.de>
1112 * Implement 'net rpc group delete'
1115 o John Klinger <john.klinger@lmco.com>
1116 * Return NSS_SUCCESS once the max number of gids possible
1117 has been found in initgroups() on Solaris.
1118 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
1121 o Volker Lendecke <vl@samba.org>
1122 * Fix success message for net groupmap modify.
1123 * Fix errors when enumerating members of groups in 'net rpc'.
1124 * Match Windows behavior in samr_lookup_names() by returning
1125 ALIAS(4) when you search in BUILTIN.
1126 * Fix server SAMR code to be able to set alias info for
1128 * Fix duplication of logic when creating groups via smbd.
1129 * Ensure that the HWM values are set correctly after running
1131 * Add 'net rpc group add'.
1132 * Implement 'net groupmap set' and 'net groupmap cleanup'.
1133 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
1134 * Fix wb_delgrpmem (wbinfo -o).
1135 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
1136 * Fix sambaUserWorkstations on a Samba DC.
1137 * Implement wbinfo -k: Have winbind generate an AFS token after
1138 authenticating the user.
1139 * Add expand_msdfs VFS module for providing referrals based on the
1140 the client's IP address.
1141 * Implement client side NETLOGON GetDCName function.
1142 * Fix caching of name->sid lookups.
1143 * Add support in winbindd for expanding nested local groups.
1144 * Fix memleak in winbindd.
1146 * Don't list domain groups from BUILTIN.
1147 * Fix memleak in policy handle utility functions.
1148 * Decrease winbindd startup time by only contacting trusted
1149 domains as necessary.
1150 * Allow winbindd to ask the DC for its domain for a trusted
1152 * Fix Netscape DS schema based on comments from
1153 <thomas.mueller@christ-wasser.de>.
1154 * Correct case where adding a domain user to a XP local group
1155 did a lsalookupname on the user without domain prefix, and
1157 * Fix segfault in winbindd caused by 'wbinfo -a'.
1160 o Herb Lewis <herb@samba.org>
1161 * Fix typo for tag in proto file.
1162 * Add missing #ifdef HAVE_BICONV stuff.
1163 * Truncate Samba's netbios name at the first '.' (not
1167 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
1168 * Bug fixes and enhancements to libsmbclient library.
1171 o Jianliang Lu <j.lu@tiesse.com>
1172 * Enforce the 'user must change password at next login' flag.
1173 * Decode meaning of 'fields present' flags (improves support
1176 * Don't force an upper case domain name in the ntlmssp code.
1179 o L. Lucius <ib@digicron.com>.
1183 o Jim McDonough <jmcd@us.ibm.com>
1184 * Add versioning support to tdbsam.
1185 * Update the IBM Directory Server schema with the OpenLDAP
1187 * Various decoding fixes to improve usrmgr.exe support.
1188 * Fix statfs redeclaration of statfs struct on ppc
1189 * Implement support for password lockout of Samba domain
1190 controllers and standalone servers.
1191 * Get MungedDial attribute actually working with full TS
1192 strings in it for pdb_ldap.
1193 * BUG 1208 (partial): Improvements for working with expired krb5
1194 tickets in winbindd.
1195 * Use timegm, or our already existing replacement instead of
1196 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
1197 * Remove modifyTimestamp from list of our attributes.
1198 * Fix lsalookupnames to check for domain users as well as local
1200 * Merge struct uuid replacement for GUID from trunk.
1201 * BUG 1208: Finish support for handling expired tickets in
1202 winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
1205 o Stefan Metzmacher <metze@samba.org>
1206 * Implement new VERSION schema based on subversion revision
1208 * Add shadow_copy vfs module.
1209 * Fix segault in login_cache support.
1212 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
1213 o BUG 979 -- Fix quota display on AIX.
1216 o James Peach <jpeach@sgi.com>
1217 * Correct check for printf() format when using the SGI MIPSPro
1219 * BUG 1038: support backtrace for 'panic action' on IRIX.
1220 * BUG 768: Accept profileing arg to IRIX init script.
1221 * BUG 748: Relax arg parsing to sambalp script (IRIX).
1222 * BUG 758: Fix pdma build.
1223 * Search IRIX ABI paths for libiconv. Based on initial fix from
1227 o Kurt Pfeifle <kpfeifle@danka.de>
1228 * Add example shell script for migrating drivers and printers
1229 from a Windows print server to a Samba print server using
1230 smbclient/rpcclient (examples/printing/VamireDriversFunctions).
1233 o Tim Potter <tpot@samba.org>
1234 * Fix logic bug in tdb non-blocking lock routines when
1236 * BUG 1025: Include sys/acl.h in check for broken nisplus
1238 * BUG 1066: s/printf/d_printf/g in SWAT.
1239 * BUG 1098: rename internal msleep() function to fix build
1241 * BUG 1112: Fix for writable printerdata problem in python bindings.
1242 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
1243 * BUG 1155: enclose use of fchown() with guards.
1244 * Relicense tdb python module as LGPL.
1247 o Richard Sharpe <rsharpe@samba.org>
1248 * Add support to smbclient for multiple logins on the same
1249 session (based on work by abartlet@samba.org).
1250 * Correct blocking condition in smbd's use of accept() on IRIX.
1251 * Add support for printing out the MAC address on nmblookup.
1254 o Simo Source <idra@samba.org>
1255 * Replace unknown_3 with fields_present in SAMR code.
1256 * More length checks in strlcat().
1259 o Andrew Tridgell <tridge@samba.org>
1260 * Rewrote the AIX UESS backend for winbindd.
1261 * Fixed compilation with --enable-dmalloc.
1262 * Change tdb license to LGPL (see source/tdb/tdb.c).
1263 * Force winbindd to use schannel in clients connections to
1267 o Jelmer Vernooij <jelmer@samba.org>
1268 * Fix ETA Calculation when resuming downloads in smbget.
1269 * Add -O (for writing downloaded files to standard out)
1270 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
1271 * Fix syntax error in example mysql table
1274 o TAKEDA yasuma <yasuma@miraclelinux.com>
1275 * BUG 900: fix token processing in cmd_symlink, cmd_link,
1276 cmd_chown, cmd_chmod smbclient functions.
1279 o Shiro Yamada <shiro@miraclelinux.com>
1280 * BUG 1129: install image files for SWAT.
1283 --------------------------------------------------
1285 ==============================
1286 Release Notes for Samba 3.0.2a
1288 ==============================
1290 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
1291 to address, in particular, a problem when using pdbedit to
1292 sanitize (--force-initialized-passwords) Samba's tdbsam
1293 backend. This is the latest stable release of Samba. This
1294 is the version that all production Samba servers should be
1295 running for all current bug-fixes.
1297 ******************* Attention! Achtung! Kree! *********************
1299 Beginning with Samba 3.0.2, passwords for accounts with a last
1300 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
1301 ldapsam, etc...) of zero (0) will be regarded as uninitialized
1302 strings. This will cause authentication to fail for such
1303 accounts. If you have valid passwords that meet this criteria,
1304 you must update the last change time to a non-zero value. If you
1305 do not, then 'pdbedit --force-initialized-passwords' will disable
1306 these accounts and reset the password hashes to a string of X's.
1308 ******************* Attention! Achtung! Kree! *********************
1317 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1318 details. The list of changes per contributor are as follows:
1321 o Jeremy Allison <jra@samba.org>
1322 * Added paranoia checks in parsing code.
1325 o Andrew Bartlett <abartlet@samba.org>
1326 * Ensure that changes to uninitialized passwords in ldapsam
1327 are written to the DIT.
1330 o Gerald (Jerry) Carter <jerry@samba.org>
1331 * Fixed iterator in tdbsam.
1332 * Fix bug that disabled accounts with a valid NT password
1333 hash, but no LanMan hash.
1336 o Steve French <sfrench@us.ibm.com>
1337 * Added missing nosetuid and noexec options.
1340 o Bostjan Golob <golob@gimb.org>
1341 * BUG 1046: Don't overwrite usernames of entries returned
1345 o Sebastian Krahmer <krahmer@suse.de>
1346 * Fixed potential crash bug in NTLMSSP parsing code.
1349 o Tim Potter <tpot@samba.org>
1350 * Fixed logic in tdb_brlock error checking.
1353 o Urban Widmark <urban@teststation.com>
1354 * Set nosuid,nodev flags in smbmnt by default.
1357 --------------------------------------------------
1359 =============================
1360 Release Notes for Samba 3.0.2
1362 =============================
1364 It has been confirmed that previous versions of Samba 3.0 are
1365 susceptible to a password initialization bug that could grant an
1366 attacker unauthorized access to a user account created by the
1367 mksmbpasswd.sh shell script.
1369 The Common Vulnerabilities and Exposures project (cve.mitre.org)
1370 has assigned the name CAN-2004-0082 to this issue.
1372 Samba administrators not wishing to upgrade to the current
1373 version should download the 3.0.2 release, build the pdbedit
1376 root# pdbedit-3.0.2 --force-initialized-passwords
1378 This will disable all accounts not possessing a valid password
1379 (e.g. the password field has been set a string of X's).
1381 Samba servers running 3.0.2 are not vulnerable to this bug
1382 regardless of whether or not pdbedit has been used to sanitize
1385 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
1388 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
1389 o Logging onto a Samba domain from Windows XP clients.
1390 o Problems with the %U and %u smb.conf variables in relation to
1391 Windows 9x/ME clients.
1392 o Kerberos failures due to an invalid in memory keytab detection
1394 o Updates to the ntlm_auth tool.
1395 o Fixes for various SMB signing errors.
1396 o Better separation of WINS and DNS queries for domain controllers.
1397 o Issues with nss_winbind FreeBSD and Solaris.
1398 o Several crash bugs in smbd and winbindd.
1399 o Output formatting fixes for smbclient for better compatibility
1400 with scripts based on the 2.2 version.
1409 Parameter Name Action
1410 -------------- ------
1411 ldap replication sleep New
1412 read size removed (unused)
1413 source environment removed (unused)
1419 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1420 details. The list of changes per contributor are as follows:
1422 o Jeremy Allison <jra@samba.org>
1423 * Revert change that broke Exchange clear text samlogons.
1424 * Fix gcc 3.4 warning in MS-DFS code.
1425 * Tidy up of NTLMSSP code.
1426 * Fixes for SMB signing errors
1427 * BUG 815: Workaround NT4 bug to support plaintext
1428 password logins and UNICODE.
1429 * Fix SMB signing bug when copying large files.
1430 * Correct error logic in mkdir_internals() (caused a panic
1431 when combined with --enable-developer).
1432 * BUG 830: Protect against crashes due to bad character
1436 o Petri Asikainen <paca@sci.fi>
1437 * BUG 330, 387:Fix single valued attribute updates when
1438 working with Novell NDS.
1441 o Andrew Bartlett <abartlet@samba.org>
1442 * Correctly handle per-pipe NTLMSSP inside a NULL session.
1443 * Fix segfault in gencache
1444 * Fix early free() of encrypted_session_key.
1445 * Change DC lookup routines to more carefully separate
1446 DNS names (realms) from NetBIOS domain names.
1447 * Add new sid_to_dn() function for internal winbindd use.
1448 * Refactor cli_ds_enum_domain_trusts().
1449 * BUG 707: Implement range retrieval of ADS attributes (based
1450 on work from Volker <vl@samba.org> and Guenther Deschner
1452 * Automatically initialize the signing engine if a session key
1454 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
1455 encoded strings, only form input in SWAT.
1456 * Resets the NTLMSSP state for new negotiate packets.
1457 * Add 2-byte alignments in net_samlogon() queries to parse
1458 odd-length plain text passwords.
1459 * Allow Windows groups with no members in winbindd.
1460 * Allow normal authentication in the absence of a server
1461 generated session key.
1462 * More optimizations for looking up UNIX group lists.
1463 * Clean up error codes and return values for pam_winbindd
1464 and winbindd PAM interface.
1465 * Fix string return values in ntlm_auth tool.
1466 * Fix segfault when 'security = ads' but no realm is defined.
1467 * BUG 722: Allow winbindd to map machine accounts to uids.
1468 * More cleanups for winbindd's find_our_domain().
1469 * More clearly detect whether a domain controller is an NT4
1470 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
1471 * Increase separation between DNS queries for hosts and queries
1472 for AD domain controllers.
1473 * Include additional NT_STATUS to PAM error mappings.
1474 * Password initialization fixes.
1477 o Justin Baugh <justin.baugh@request.com>
1478 * BUG 948: Implement missing functions required for FreeBSD
1479 nss_winbind support.
1482 o Alexander Bokovoy <ab@samba.org>
1483 * BUG 922: Make sure enable fast path for strlower_m() and
1487 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
1488 * Fix crash when using 'security = server' and 'encrypt
1489 passwords = no' by always initializing the session key.
1492 o Dmitry Butskoj <buc@odusz.elektra.ru>
1493 * Fix for special files being hidden from admins.
1496 o Gerald (Jerry) Carter <jerry@samba.org>
1497 * Fix bug in the lanman session key generation. Caused
1498 "decode_pw: incorrect password length" error messages.
1499 * Save the right case for the located user name in
1500 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
1501 * BUG 897: Add well known rid for pre win2k compatible access
1503 * BUG 887: Correct typo in delete user script example.
1504 * Use short lived TALLOC_CTX* for allocating printer objects
1505 from the print handle cache.
1506 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
1507 * Fix several warnings reported by the SUN Forte C compiler.
1508 * Fully control DNS queries for AD DC's using 'name resolve order'.
1509 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
1510 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
1511 * BUG 936: fix bind credentials for schannel binds in smbd.
1512 * BUG 446: Fix output of smbclient for better compatibility
1513 with scripts based on the 2.2 version (including Amanda).
1514 * BUG 891, 949: Fedora packaging fixes.
1515 * Fix bug that caused rpcclient to incorrectly retrieve
1516 the SID for a server (this causing all calls that required
1517 this information to fail).
1518 * BUG 977: Don't create a homes share for a user if a static
1519 share already exists by the same name.
1520 * Removed unused smb.conf options.
1521 * Password initialization fixes.
1522 * Set the disable flag for template accounts created by
1524 * Disable any account has no passwords and does not have the
1525 ACB_PWNOTREQ bit set.
1528 o Guenther Deschner <gd@suse.com>
1529 * Install smbwrapper.so should be put into the $(libdir)
1531 * Add the capability to specify the new user password
1532 for "net ads password" on the command line.
1533 * Correctly detect AFS headers on SuSE.
1536 o James Flemer <jflemer@uvm.edu>
1537 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
1538 HAVE_SYS_ATTRIBUTES_H.
1541 o Luke Howard <lukeh@PADL.COM>
1542 * Fix segfault in session setup reply caused by a early free().
1545 o Stoian Ivanov <sdr@bultra.com>
1546 * Implement grepable output for smbclient -L.
1549 o LaMont Jones <lamont@debian.org>
1550 * BUG 225328 (Debian): Correct false failure LFS test that resulted
1551 in _GNU_SOURCE not being defined (thus resulting in strndup()
1555 o Volker Lendecke <vl@samba.org>
1556 * BUG 583: Ensure that user names always contain the short
1557 version of the domain name.
1558 * Fix our parsing of the LDAP uri.
1559 * Don't show the 'afs username map' in the SWAT basic view.
1560 * Fix SMB signing issues in relation to failed NTLMSSP logins.
1561 * BUG 924: Fix return codes in smbtorture harness.
1562 * Always lower-case usernames before handing it to AFS code.
1563 * Add a German translation for SWAT.
1564 * Fix a segfaults in winbindd.
1565 * Fix the user's domain passed to register_vuid() from
1566 reply_spnego_kerberos().
1567 * Add NSS example code in nss_winbind to convert UNIX
1568 id's <-> Windows SIDs.
1569 * Display more descriptive error messages for login via 'net'.
1570 * Fix compiler warning in the net tool.
1571 * Fix length bug when decoding base64 strings.
1572 * Ensure we don't call getpwnam() inside a loop that is iterating
1573 over users with getpwent(). This broke on glibc 2.3.2.
1576 o Herb Lewis <herb@samba.org>
1577 * Fix bit rot in psec.
1580 o Jianliang Lu <j.lu@tiesse.com>
1581 * Ensure we delete the group mapping before calling the delete
1583 * Define well known RID for managing the "Power Users" group.
1584 * BUG 381: check builtin (not local) group SID when updating
1586 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
1590 o John Klinger <john.klinger@lmco.com>
1591 * Implement initgroups() call in nss_winbind on Solaris.
1594 o Jim McDonough <jmcd@us.ibm.com>
1595 * Fix regression in net rpc join caused by recent changes
1596 to cli_lsa_query_info_policy().
1597 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
1601 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
1602 * BUG 570: Ensure that configure honors the LDFLAGS variable.
1605 o Stefan Metzmacher <metze@samba.org>
1606 * Implement LDAP rebind sleep patch.
1607 * Revert to 2.2 quota code because of so many broken quota files
1609 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
1610 XFS_USER_QUOTA -> USRQUOTA
1611 XFS_GROUP_QUOTA -> GRPQUOTA
1612 * Fix disk_free calculation with group quotas.
1613 * Add debug class 'quota' and a lot of DEBUG()'s
1615 * Fix sys_chown() when no chown() is present.
1616 * Add SIGABRT to fault handling in order to catch got a
1617 backtrace if an error occurs the OpenLDAP client libs.
1621 * Allow an existing LDAP machine account to be re-used when
1622 joining an AD domain.
1625 o James Peach <jpeach@sgi.com>
1626 * BUG 889: Change smbd to use pread/pwrite on platforms that
1627 support these calls. Can lead to a significant speed increase.
1630 o Tim Potter <tpot@samba.org>
1631 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
1632 * BUG 924: Fix typo in RW2 torture test.
1635 o Richard Sharpe <rsharpe@samba.org>
1636 * Small fixes to torture.c to cleanup the error handling
1637 and prevent crashes.
1640 o J. Tournier <jerome.tournier@IDEALX.com>
1641 * Small fixes for the smbldap-tool scripts.
1644 o Andrew Tridgell <tridge@samba.org>
1645 * Fix src len check in pull_usc2().
1648 o Jelmer Vernooij <jelmer@samba.org>
1649 * Put functions for generating SQL queries in pdb_sql.c
1650 * Add pgSQL backend (based on patch by Hamish Friedlander)
1651 * BUG 908: Fix -s option to smbcontrol.
1652 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
1653 * Fix for libnss_wins on IRIX platforms.
1654 * Fix swatdir for --with-fhs.
1657 --------------------------------------------------
1659 =============================
1660 Release Notes for Samba 3.0.1
1662 =============================
1664 Some of the more common bugs in 3.0.0 addressed in the release
1667 o Substitution problems with smb.conf variables.
1668 o Errors in return codes which caused some applications
1669 to fail to open files.
1670 o General Protection Faults on Windows 2000/XP clients
1671 using Samba point-n-print features.
1672 o Several miscellaneous crash bugs.
1673 o Access problems when enumerating group mappings are
1674 stored in an LDAP Directory.
1675 o Several common SWAT bugs when writing changes to
1677 o Internal inconsistencies when 'winbind use default
1683 ----------------------
1685 Parameter Name Action
1686 -------------- ------
1687 hide local users Removed
1688 mangled map Deprecated
1689 mangled stack Removed
1690 passwd chat timeout New
1696 o Change the interface for init_unistr2 to not take a length
1697 but a flags field. We were assuming that
1698 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
1699 o Allow d_printf() to handle strings with escaped quotation
1700 marks since the msg file includes the escape character (bug 489).
1701 o Fix bad html table row termination in SWAT wizard code (bug 413).
1702 o Fix to parse the level-2 strings.
1703 o Fix for "valid users = %S" in [homes]. Fix read/write
1705 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
1706 This is the same way AC_CHECK_LIB works (bug 508).
1707 o Testparm output fixes for clarity.
1708 o Fix broken wins hook functionality -- i18n bug (bug 528).
1709 o Take care of condition where DOS and NT error codes must differ.
1710 o Default to using only built-in charsets when a working iconv
1711 implementation cannot be located.
1712 o Wrap internals of sys_setgroups() so the sys_XX() call can
1713 be done unconditionally (bug 550).
1714 o Remove duplicate smbspool link on SWAT's front page (bug 541).
1715 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
1716 --enable-debug=[yes|no] works correctly.
1717 o Allow ^C to interrupt smbpasswd if using our getpass
1718 (e.g. smbpasswd command).
1719 o Support signing only on RPC's (bug 167).
1720 o Correct bug that prevented Excel 2000 clients from opening
1721 files marked as read-only.
1722 o Portability fix bugs 546 - 549).
1723 o Explicitly initialize the value of AR for vendor makes that don't
1724 do this (e.g. HPUX 11). (bug 552).
1725 o More i18n fixes for SWAT (bug 413).
1726 o Change the cwd before the postexec script to ensure that a
1727 umount will succeed.
1728 o Correct double free that caused winbindd to crash when a DC
1729 is rebooted (bug 437).
1730 o Fix incorrect mode sum (bug 562).
1731 o Canonicalize SMB_INFO_ALLOCATION in the same was as
1732 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
1733 o Add script to generate *msg files.
1734 o Add Dutch SWAT translation file.
1735 o Make sure to call get_user_groups() with the full winbindd
1736 name for a user if he/she has one (bug 406).
1737 o Fix up error code returns from Samba4 tester. Ensure invalid
1738 paths are validated the same way.
1739 o Allow Samba3 to pass the Samba4 RAW-READ tests.
1740 o Refuse to configure if --with-expsam=$BACKEND was used but no
1741 libraries were found for $BACKEND.
1742 o Move sysquotas autoconf tests to a separate file.
1743 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
1745 o Make sure that the files that contain the static_init_$subsystem;
1746 macro get recompiled after configure by removing the object
1748 o Ensure canceling a blocking lock returns the correct error
1750 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
1751 o Updated Japanese welcome file in SWAT.
1752 o Fix to nt-time <-> unix-time functions reversible.
1753 o Ensure that winbindd uses the the escaped DN when querying
1755 o Fix portability issues when compiling (bug 505, 550)
1756 o Compile fix for tdbbackup when Samba needs to override
1757 non-C99 compliant implementations of snprintf().
1758 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
1759 o Make sure we break out of samsync loop on error.
1760 o Ensure error code path doesn't free unmalloc()'d memory
1762 o Add configure test for krb5_keytab_entry keyblock vs key
1765 o Modified testparm so that all output so all debug output goes
1766 to stderr, and all file processing goes to stdout.
1767 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
1769 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
1770 we have a devmode before copying a string to the devicename.
1771 o Support mapping REALM.COM\user to a local user account (without
1772 running winbindd) for compatibility with 2.2.x release.
1773 o Ensure we don't use mmap() on blacklisted systems.
1774 o fixed a number of bugs and memory leaks in the AIX
1776 o Call initgroups() in SWAT before becomming the user so that
1777 secondary group permissions can be used when writing to
1779 o Fix signing problems when reverse connecting back to a
1780 client for printer notify
1781 o Fix signing problems caused by a miss-sequence bug.
1782 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
1783 Fixes NEXUS tools running on Win9x clients (bug 64).
1784 o Don't leave the domain field uninitialized in cli_lsa.c if some
1785 SID could not be mapped.
1786 o Fix segfault in mount.cifs helper when there is no options
1787 specified during mount.
1788 o Change the \n after the password prompt to go to tty instead
1789 of stdout (bug 668).
1790 o Stop net -P from prompting for machine account password (bug 451).
1791 o Change in behavior to Not only change the effective uid but also
1792 the real uid when becoming unprivileged.
1793 o Cope with Exchange 5.5 cleartext pop password auth.
1794 o New files for support of initshutdown pipe. Win2k doesn't
1795 respond properly to all requests on the winreg pipe, so we need
1796 to handle this new pipe (bug 534).
1797 o Added more va_copy() checks in configure.in.
1798 o Include fixes for libsmbclient build problems.
1799 o Missing UNIX -> DOS codepage conversion in lanman.c.
1800 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
1801 o Parameterize the listen backlog in smbd and make it larger by
1802 default. A backlog of 5 is way too small these days.
1803 o Check for an invalid fid before dereferencing the fsp pointer
1805 o Remove invalid memory frees and return codes in pdb_ldap.c.
1806 o Prompt for password when invoking --set-auth-user and no
1808 o Bind the nmbd sending socket to the 'socket address'.
1809 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
1810 $LDFLAGS occurs before any library specification (bug 661).
1811 o Fix large number of printf() calls for 64-bit size_t.
1812 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
1813 keyblock in the krb5 structs.
1814 o Remove #include <compat.h> in hopes to avoid problems with
1815 apache header files.
1816 o Correct winbindd build problems on HP-UX 11.
1817 o Lowercase netgroups lookups (bug 703).
1818 o Use the actual size of the buffer in strftime instead of a made
1819 up value which just happens to be less than sizeof(fstring).
1821 o Add ldaplibs to pdbedit link line (bug 651).
1822 o Fix crash bug in smbclient completion (bug 659).
1823 o Fix packet length for browse list reply (bug 771).
1824 o Fix coredump in cli_get_backup_list().
1825 o Make sure that we expand %N (bug 612).
1826 o Allow rpcclient adddriver command to specify printer driver
1828 o Compile tdbdump by default.
1829 o Apply patches to fix iconv detection for FreeBSD.
1830 o Do not allow the 'guest account' to be added to a passdb backend
1831 using smbpasswd or pdbedit (bug 624).
1832 o Save LDFLAGS during iconv detection (bug 57).
1833 o Run krb5 logins through the username map if the winbindd
1834 lookup fails (bug 698).
1835 o Add const for lp_set_name_resolve_order() to avoid compiler
1837 o Add support for the %i macro in smb.conf to stand in for the for
1838 the local IP address to which a client connected.
1839 o Allow winbindd to match local accounts to domain SID when
1840 'winbind trusted domains only = yes' (bug 680).
1841 o Remove code in idmap_ldap that searches the user suffix and group
1842 suffix. It's not needed and provides inconsistent functionality
1843 from the tdb backend.
1844 o Patch to handle munged dial string for Windows 2000 TSE.
1845 Thanks to Gaz de France, Direction de la Recherche, Service
1846 Informatique Métier for their supporting this work by Aurelien
1847 Degrémont <adegremont@idealx.com>.
1848 o Correct the "smbldap_open: cannot access when not root error"
1849 messages when looking up group information (bug 281).
1850 o Skip over the winbind separator when looking up a user.
1851 This fixes the bug that prevented local users from
1852 matching an AD user when not running winbindd (bug 698).
1853 o Fix a problem with configure on *BSD systems. Make sure
1854 we add -liconv etc to LDFLAGS.
1855 o Fix core dump bug when "security = server" and the authentication
1857 o Correct crash bug due to an empty munged dial string.
1858 o Show files locked by a specific user (smbstatus -u 'user')
1860 o Fix bug preventing print jobs from display in the queue
1861 monitor used by Windows NT and later clients (bug 660).
1862 o Fix several reported problems with point-n-print from
1863 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
1864 reply (bug 338, 527 & 643).
1865 o Fix a handful of potential memory leaks in the LDAP code used
1866 by ldapsam[_compat] and the LDAP idmap backend.
1867 o Fix for pdbedit error code returns (bug 763).
1868 o Make sure we only enumerate group mapping entries (not
1869 /etc/group) even when doing local aliases.
1870 o Relax check on the pipe name in a dce/rpc bind response to work
1871 around issues with establishing trusts to a Windows 2003 domain.
1872 o Ensure we mangle names ending in '.' in hash2 mangling method.
1873 o Correct parsing issues with munged dial string.
1874 o Fix bugs in quota support for XFS.
1875 o Add a cleaner method for applications that need to provide
1876 name->SID mappings to do this via NSS rather than having to
1877 know the winbindd pipe protocol.
1878 o Adds a variant of the winbindd_getgroups() call called
1879 winbindd_getusersids() that provides direct SID->SIDs listing of
1880 a users supplementary groups. This is enough to allow non-Samba
1881 applications to do ACL checking.
1882 o Make sure we don't append the 'ldap suffix' when writing out the
1883 'ldap XXX suffix' values in SWAT (bug 328).
1884 o Fix renames across file systems.
1885 o Ensure that items in a list of strings containing whitespace are
1886 written out surrounded by single quotes. This means that both
1887 double and single quotes are now used to surround strings in
1889 o Enable SWAT to correctly determine if winbindd is running (bug
1891 o Include WWW-Authenticate field in 401 response for bad auth
1893 o Add support for NTLM2 (NTLMv2 session security).
1894 o Add support for variable-length session keys.
1895 o More privilege fixes for group enumeration in LDAP (bug 281).
1896 o Use the dns name (or IP) as the originating client name when
1897 using CUPS (bug 467).
1898 o Fix various SMB signing bugs.
1899 o Fix ACL propagation on a DFS root (bug 263).
1900 o Disable NTLM2 for RPC pipes.
1901 o Allow the client to specify the NTLM2 flags got NTLMSSP
1903 o Change the name of the job passed off to cups from "Test Page"
1904 to "smbprn.00000033 Test Page" so that we can get the smb
1905 jobid back. This allow users to delete jobs with cups printing
1906 backend (partial work on bug 770).
1907 o Fix build of winbindd with static pdb modules.
1908 o Retrieve the correct ACL group bits if the file has an ACL
1910 o Implement "net rpc group members": Get members of a domain group
1911 in human-readable format.
1912 o Add MacOSX (Darwin) specific charset module code.
1913 o Use samr_dispinfo(level == 1) for enumerating domain users so we
1914 can include the full name in gecos field (bug 587).
1915 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1916 o Implement 'net rpc group list [global|local|builtin]*' for a
1917 select listing of the respective user databases.
1918 o Don't automatically set NT status code flag unless client tells
1920 o Add 'net status [sessions|shares] [parseable]'.
1921 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
1923 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
1925 o Fix inverted logic in hosts allow/deny checks caused by
1926 s/strcmp/strequal/ (bug 846).
1927 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1928 o Fix typo in 'hash' mangling algorithm.
1929 o Support munged dial for ldapsam (bug 800).
1930 o Fix process_incoming_data() to return the number of bytes handled
1931 this call whether we have a complete PDU or not; fixes bug
1932 with multiple PDU request rpc's broken over SMBwriteX calls
1934 o Fix incorrect smb flags2 for connections to pre-NT servers
1935 (causes smbclient to fail to OS2 for example) (bug 821).
1936 o Update version string in smbldap-tools Makefile to 0.8.2.
1937 o Correct a problem with "net rpc vampire" mis-parsing the
1938 alias member info reply.
1939 o Ensure the ${libdir} is created by the installclientlib script.
1940 o Fix detection of Windows 2003 client architecture in the smb.conf
1942 o Ensure that smbd calls the add user script for a missing UNIX
1943 user on kerberos auth call (bug 445).
1944 o Fix bugs in hosts allow/deny when using a mismatched
1945 network/netmask pair.
1946 o Protect alloc_sub_basic() from crashing when the source string
1947 is NULL (partial work on bug 687).
1948 o Fix spinlocks on IRIX.
1949 o Corrected some bad destination paths when running "configure
1951 o Add packaging files for Fedora Core 1.
1952 o Correct bug in SWAT install script for non-english languages.
1953 o Support character set ISO-8859-1 internally (bug 558).
1954 o Fixed more LDAP access errors when looking up group mappings
1956 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
1957 resolution to fail on local files on on domain members
1959 o Fix uninitialized variable in passdb.c.
1960 o Fix formal parameter type in get_static() in nsswitch/wins.c.
1961 o Fix problem mounting directories when mount.cifs is installed
1962 with the setuid bit on.
1963 o Fix bug that prevent --mandir from overriding the defaults
1964 given in the --with-fhs macro.
1965 o Fix bug in in-memory Kerberos keytab detection routines
1970 ######################################################################
1972 The original 3.0.0 release notes follow
1973 =======================================
1974 WHATS NEW IN Samba 3.0.0
1976 =======================================
1982 1) Active Directory support. Samba 3.0 is now able to
1983 join a ADS realm as a member server and authenticate
1984 users using LDAP/Kerberos.
1986 2) Unicode support. Samba will now negotiate UNICODE on the wire
1987 and internally there is now a much better infrastructure for
1988 multi-byte and UNICODE character sets.
1990 3) New authentication system. The internal authentication system
1991 has been almost completely rewritten. Most of the changes are
1992 internal, but the new auth system is also very configurable.
1994 4) New default filename mangling system.
1996 5) A new "net" command has been added. It is somewhat similar to
1997 the "net" command in windows. Eventually we plan to replace
1998 numerous other utilities (such as smbpasswd) with subcommands
2001 6) Samba now negotiates NT-style status32 codes on the wire. This
2002 improves error handling a lot.
2004 7) Better Windows 2000/XP/2003 printing support including publishing
2005 printer attributes in active directory.
2007 8) New loadable module support for passdb backends and character
2010 9) New default dual-daemon winbindd support for better performance.
2012 10) Support for migrating from a Windows NT 4.0 domain to a Samba
2013 domain and maintaining user, group and domain SIDs.
2015 11) Support for establishing trust relationships with Windows NT 4.0
2018 12) Initial support for a distributed Winbind architecture using
2019 an LDAP directory for storing SID to uid/gid mappings.
2021 13) Major updates to the Samba documentation tree.
2023 14) Full support for client and server SMB signing to ensure
2024 compatibility with default Windows 2003 security settings.
2026 15) Improvement of ACL mapping features based on code donated by
2027 Andreas Grünbacher.
2030 Plus lots of other improvements!
2033 Additional Documentation
2034 ------------------------
2036 Please refer to Samba documentation tree (included in the docs/
2037 subdirectory) for extensive explanations of installing, configuring
2038 and maintaining Samba 3.0 servers and clients. It is advised to
2039 begin with the Samba-HOWTO-Collection for overviews and specific
2040 tasks (the current book is up to approximately 400 pages) and to
2041 refer to the various man pages for information on individual options.
2043 We are very glad to be able to include the second edition of
2044 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
2045 (O'Reilly & Associates) in this release. The book is available
2046 on-line at http://samba.org/samba/docs/ and is included with
2047 the Samba Web Administration Tool (SWAT). Thanks to the authors and
2048 publisher for making "Using Samba" under the GNU Free Documentation
2052 ######################################################################
2053 Upgrading from a previous Samba 3.0 beta
2054 ########################################
2056 Beginning with Samba 3.0.0beta3, the RID allocation functions
2057 have been moved into winbindd. Previously these were handled
2058 by each passdb backend. This means that winbindd must be running
2059 to automatically allocate RIDs for users and/or groups. Otherwise,
2060 smbd will use the 2.2 algorithm for generating new RIDs.
2062 If you are using 'passdb backend = tdbsam' with a previous Samba
2063 3.0 beta release (or possibly alpha), it may be necessary to
2064 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
2065 to winbindd_idmap.tdb. To do this:
2067 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
2069 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
2071 3) run: (note that 'tdb>' is the tool's prompt for input)
2073 root# ./tdbtool /usr/local/samba/private/passdb.tdb
2074 tdb> show RID_COUNTER
2078 [000] 0A 52 00 00 .R.
2080 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
2084 If you are using 'passdb backend = ldapsam', it will be necessary to
2085 store idmap entries in the LDAP directory as well (i.e. idmap backend
2086 = ldap). Refer to the 'net idmap' command for more information on
2087 migrating SID<->UNIX id mappings from one backend to another.
2089 If the RID_COUNTER record does not exist, then these instructions are
2090 unneccessary and the new RID_COUNTER record will be correctly generated
2095 ########################
2096 Upgrading from Samba 2.2
2097 ########################
2099 This section is provided to help administrators understand the details
2100 involved with upgrading a Samba 2.2 server to Samba 3.0.
2106 Many of the options to the GNU autoconf script have been modified
2107 in the 3.0 release. The most noticeable are:
2109 * removal of --with-tdbsam (is now included by default; see section
2110 on passdb backends and authentication for more details)
2112 * --with-ldapsam is now on used to provided backward compatible
2113 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
2114 backend and authentication section for more details
2116 * inclusion of non-standard passdb modules may be enabled using
2117 --with-expsam. This includes an XML backend and a mysql backend.
2119 * removal of --with-msdfs (is now enabled by default)
2121 * removal of --with-ssl (no longer supported)
2123 * --with-utmp now defaults to 'yes' on supported systems
2125 * --with-sendfile-support is now enabled by default on supported
2132 This section contains a brief listing of changes to smb.conf options
2133 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
2134 complete descriptions of new or modified parameters.
2136 Removed Parameters (order alphabetically):
2139 * alternate permissions
2142 * code page directory
2144 * domain admin group
2145 * domain guest group
2146 * force unknown acl user
2152 * printer driver file
2153 * printer driver location
2155 * source environment
2163 New Parameters (new parameters have been grouped by function):
2167 * abort shutdown script
2170 User and Group Account Management
2171 ---------------------------------
2173 * add machine script
2174 * add user to group script
2175 * algorithmic rid base
2176 * delete group script
2177 * delete user from group script
2179 * set primary group script
2185 * passwd chat timeout
2189 * client lanman auth
2190 * client NTLMv2 auth
2196 * paranoid server security
2205 * hide special files
2206 * hide unwriteable files
2208 * kernel change notify
2218 * max reported print jobs
2220 UNICODE and Character Sets
2221 --------------------------
2227 SID to uid/gid Mappings
2228 -----------------------
2232 * winbind enable local accounts
2233 * winbind trusted domains only
2234 * template primary group
2235 * enable rid algorithm
2242 * ldap machine suffix
2244 * ldap replication sleep
2247 General Configuration
2248 ---------------------
2252 Modified Parameters (changes in behavior):
2254 * encrypt passwords (enabled by default)
2255 * mangling method (set to 'hash2' by default)
2258 * restrict anonymous (integer value)
2259 * security (new 'ads' value)
2260 * strict locking (enabled by default)
2261 * unix extensions (enabled by default)
2262 * winbind cache time (increased to 5 minutes)
2263 * winbind uid (deprecated in favor of 'idmap uid')
2264 * winbind gid (deprecated in favor of 'idmap gid')
2270 This section contains brief descriptions of any new databases
2271 introduced in Samba 3.0. Please remember to backup your existing
2272 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
2273 upgrade databases as they are opened (if necessary), but downgrading
2274 from 3.0 to 2.2 is an unsupported path.
2276 Name Description Backup?
2277 ---- ----------- -------
2278 account_policy User policy settings yes
2279 gencache Generic caching db no
2280 group_mapping Mapping table from Windows yes
2281 groups/SID to unix groups
2282 winbindd_idmap ID map table from SIDS to UNIX yes
2284 namecache Name resolution cache entries no
2285 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
2286 returned as part of a successful
2287 net_sam_logon request
2288 printing/*.tdb Cached output from 'lpq no
2289 command' created on a per print
2291 registry Read-only samba registry skeleton no
2292 that provides support for exporting
2293 various db tables via the winreg RPCs
2299 The following issues are known changes in behavior between Samba 2.2 and
2300 Samba 3.0 that may affect certain installations of Samba.
2302 1) When operating as a member of a Windows domain, Samba 2.2 would
2303 map any users authenticated by the remote DC to the 'guest account'
2304 if a uid could not be obtained via the getpwnam() call. Samba 3.0
2305 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
2306 current work around to re-establish the 2.2 behavior.
2308 2) When adding machines to a Samba 2.2 controlled domain, the
2309 'add user script' was used to create the UNIX identity of the
2310 machine trust account. Samba 3.0 introduces a new 'add machine
2311 script' that must be specified for this purpose. Samba 3.0 will
2312 not fall back to using the 'add user script' in the absence of
2313 an 'add machine script'
2316 ######################################################################
2317 Passdb Backends and Authentication
2318 ##################################
2320 There have been a few new changes that Samba administrators should be
2321 aware of when moving to Samba 3.0.
2323 1) encrypted passwords have been enabled by default in order to
2324 inter-operate better with out-of-the-box Windows client
2325 installations. This does mean that either (a) a samba account
2326 must be created for each user, or (b) 'encrypt passwords = no'
2327 must be explicitly defined in smb.conf.
2329 2) Inclusion of new 'security = ads' option for integration
2330 with an Active Directory domain using the native Windows
2331 Kerberos 5 and LDAP protocols.
2333 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
2334 type which is neccessary for servers on which the
2335 administrator password has not been changed, or kerberos-enabled
2336 SMB connections to servers that require Kerberos SMB signing.
2337 Besides this one difference, either MIT or Heimdal Kerberos
2338 distributions are usable by Samba 3.0.
2341 Samba 3.0 also includes the possibility of setting up chains
2342 of authentication methods (auth methods) and account storage
2343 backends (passdb backend). Please refer to the smb.conf(5)
2344 man page for details. While both parameters assume sane default
2345 values, it is likely that you will need to understand what the
2346 values actually mean in order to ensure Samba operates correctly.
2348 The recommended passdb backends at this time are
2350 * smbpasswd - 2.2 compatible flat file format
2351 * tdbsam - attribute rich database intended as an smbpasswd
2352 replacement for stand alone servers
2353 * ldapsam - attribute rich account storage and retrieval
2354 backend utilizing an LDAP directory.
2355 * ldapsam_compat - a 2.2 backward compatible LDAP account
2358 Certain functions of the smbpasswd(8) tool have been split between the
2359 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
2360 utility. See the respective man pages for details.
2363 ######################################################################
2367 This section outlines the new features affecting Samba / LDAP
2373 A new object class (sambaSamAccount) has been introduced to replace
2374 the old sambaAccount. This change aids us in the renaming of
2375 attributes to prevent clashes with attributes from other vendors.
2376 There is a conversion script (examples/LDAP/convertSambaAccount) to
2377 modify and LDIF file to the new schema.
2381 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
2382 $ convertSambaAccount --sid=<Domain SID> \
2383 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
2384 --changetype=[modify|add]
2386 The <DOM SID> can be obtained by running 'net getlocalsid
2387 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
2388 the format of the generated LDIF output--either create new entries
2389 or modify existing entries.
2391 The old sambaAccount schema may still be used by specifying the
2392 "ldapsam_compat" passdb backend. However, the sambaAccount and
2393 associated attributes have been moved to the historical section of
2394 the schema file and must be uncommented before use if needed.
2395 The 2.2 object class declaration for a sambaAccount has not changed
2396 in the 3.0 samba.schema file.
2398 Other new object classes and their uses include:
2400 * sambaDomain - domain information used to allocate rids
2401 for users and groups as necessary. The attributes are added
2402 in 'ldap suffix' directory entry automatically if
2403 an idmap uid/gid range has been set and the 'ldapsam'
2404 passdb backend has been selected.
2406 * sambaGroupMapping - an object representing the
2407 relationship between a posixGroup and a Windows
2408 group/SID. These entries are stored in the 'ldap
2409 group suffix' and managed by the 'net groupmap' command.
2411 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
2412 automatically and contains the next available 'idmap uid' and
2415 * sambaIdmapEntry - object storing a mapping between a
2416 SID and a UNIX uid/gid. These objects are created by the
2417 idmap_ldap module as needed.
2419 * sambaSidEntry - object representing a SID alone, as a Structural
2420 class on which to build the sambaIdmapEntry.
2423 New Suffix for Searching
2424 ------------------------
2426 The following new smb.conf parameters have been added to aid in directing
2427 certain LDAP queries when 'passdb backend = ldapsam://...' has been
2430 * ldap suffix - used to search for user and computer accounts
2431 * ldap user suffix - used to store user accounts
2432 * ldap machine suffix - used to store machine trust accounts
2433 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
2434 * ldap idmap suffix - location of sambaIdmapEntry objects
2436 If an 'ldap suffix' is defined, it will be appended to all of the
2437 remaining sub-suffix parameters. In this case, the order of the suffix
2438 listings in smb.conf is important. Always place the 'ldap suffix' first
2441 Due to a limitation in Samba's smb.conf parsing, you should not surround
2442 the DN's with quotation marks.
2448 Samba 3.0 supports an ldap backend for the idmap subsystem. The
2449 following options would inform Samba that the idmap table should be
2450 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
2455 idmap backend = ldap:ldap://onterose/
2456 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
2457 idmap uid = 40000-50000
2458 idmap gid = 40000-50000
2460 This configuration allows winbind installations on multiple servers to
2461 share a uid/gid number space, thus avoiding the interoperability problems
2462 with NFS that were present in Samba 2.2.
2466 ######################################################################
2467 Trust Relationships and a Samba Domain
2468 ######################################
2470 Samba 3.0.0beta2 is able to utilize winbindd as the means of
2471 allocating uids and gids to trusted users and groups. More
2472 information regarding Samba's support for establishing trust
2473 relationships can be found in the Samba-HOWTO-Collection included
2474 in the docs/ directory of this release.
2476 First create your Samba PDC and ensure that everything is
2477 working correctly before moving on the trusts.
2479 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
2480 4.0 domain named WINDOWS:
2482 1) create the trust account for SAMBA in "User Manager for Domains"
2483 2) connect the trust from the Samba domain using
2484 'net rpc trustdom establish GLASS'
2486 To create a trustlationship with SAMBA as the trusted domain:
2488 1) create the initial trust account for GLASS using
2489 'smbpasswd -a -i GLASS'. You may need to create a UNIX
2490 account for GLASS$ prior to this step (depending on your
2491 local configuration).
2492 2) connect the trust from a WINDOWS DC using "User Manager
2495 Now join winbindd on the Samba PDC to the SAMBA domain using
2496 the normal steps for adding a Samba server to an NT4 domain:
2497 (note that smbd & nmbd must be running at this point)
2499 root# net rpc join -U root
2500 Password: <enter root password from smbpasswd file here>
2502 Start winbindd and test the join with 'wbinfo -t'.
2504 Now test the trust relationship by connecting to the SAMBA DC
2505 (e.g. POGO) as a user from the WINDOWS domain:
2507 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
2510 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
2512 $ smbclient //crystal/netlogon -U root -W WINDOWS
2515 ######################################################################
2519 Beginning with Samba3.0.0beta3, winbindd has been given new account
2520 manage functionality equivalent to the 'add user script' family of
2521 smb.conf parameters. The idmap design has also been changed to
2522 centralize control of foreign SID lookups and matching to UNIX
2526 Brief Description of Changes
2527 ----------------------------
2529 1) The sid_to_uid() family of functions (smbd/uid.c) have been
2530 reverted to the 2.2.x design. This means that when resolving a
2531 SID to a UID or similar mapping:
2533 a) First consult winbindd
2534 b) perform a local lookup only if winbindd fails to
2535 return a successful answer
2537 There are some variations to this, but these two rules generally
2540 2) All idmap lookups have been moved into winbindd. This means that
2541 a server must run winbindd (and support NSS) in order to achieve
2542 any mappings of SID to dynamically allocated UNIX ids. This was
2543 a conscious design choice.
2545 3) New functions have been added to winbindd to emulate the 'add user
2546 script' family of smbd functions without requiring that external
2547 scripts be defined. This functionality is controlled by the 'winbind
2548 enable local accounts' smb.conf parameter (enabled by default).
2550 However, this account management functionality is only supported
2551 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
2552 must be shared among multiple Samba servers (such as a PDC and BDCs),
2553 it will be necessary to define your own 'add user script', et. al.
2554 programs that place the accounts/groups in some form of directory
2555 such as NIS or LDAP. This requirement was deemed beyond the scope
2556 of winbind's account management functions. Solutions for
2557 distributing UNIX system information have been deployed and tested
2558 for many years. We saw no need to reinvent the wheel.
2560 4) A member of a Samba controlled domain running winbindd is now able
2561 to map domain users directly onto existing UNIX accounts while still
2562 automatically creating accounts for trusted users and groups. This
2563 behavior is controlled by the 'winbind trusted domains only' smb.conf
2564 parameter (disabled by default to provide 2.2.x winbind behavior).
2566 5) Group mapping support is wrapped in the local_XX_to_XX() functions
2567 in smbd/uid.c. The reason that group mappings are not included
2568 in winbindd is because the purpose of Samba's group map is to
2569 match any Windows SID with an existing UNIX group. These UNIX
2570 groups can be created by winbindd (see next section), but the
2571 SID<->gid mapping is retreived by smbd, not winbindd.
2577 * security = server running winbindd to allocate accounts on demand
2579 * Samba PDC running winbindd to handle the automatic creation of UNIX
2580 identities for machine trust accounts
2582 * Automtically creating UNIX user and groups when migrating a Windows NT
2583 4.0 PDC to a Samba PDC. Winbindd must be running when executing
2584 'net rpc vampire' for this to work.
2587 ######################################################################
2591 * There are several bugs currently logged against the 3.0 codebase
2592 that affect the use of NT 4.0 GUI domain management tools when run
2593 against a Samba 3.0 PDC. This bugs should be released in an early
2596 Please refer to https://bugzilla.samba.org/ for a current list of bugs
2597 filed against the Samba 3.0 codebase.
2600 ######################################################################
2601 Reporting bugs & Development Discussion
2602 #######################################
2604 Please discuss this release on the samba-technical mailing list or by
2605 joining the #samba-technical IRC channel on irc.freenode.net.
2607 If you do report problems then please try to send high quality
2608 feedback. If you don't provide vital information to help us track down
2609 the problem then you will probably be ignored.
2611 A new bugzilla installation has been established to help support the
2612 Samba 3.0 community of users. This server, located at
2613 https://bugzilla.samba.org/, has replaced the older jitterbug server
2614 previously located at http://bugs.samba.org/.