1 =================================
2 Release Notes for Samba 3.0.8pre2
4 =================================
6 This is a preview release of the Samba 3.0.8 code base.
7 It is *not* intended for production use but rather is
8 provided to allow people to test the bug fixes and new
9 features in the upcoming 3.0.8 release. Use at your own
12 Common bugs fixed in 3.0.8pre2 include:
14 o Several bugs in the spoolss printing code.
15 o Inconsistencies in the username map functionality
16 when configured on domain member servers.
17 o Various compile warnings and errors on various platforms.
19 New features included in the 3.0.8pre1 release are:
21 o New experimental idmap backend for assigning uids/gids
22 directly based on the user/group RID when acting as a
23 member of single domain without any trusts.
24 o Additional printer migration support for XP/2003 platforms.
27 Change in Username Map
28 ----------------------
30 Previous Samba releases would only support reading the fully qualified
31 username (e.g. DOMAIN\user) from the username map when performing a
32 kerberos login from a client. However, when looking up a map
33 entry for a user authenticated by NTLM[SSP], only the login name would be
34 used for matches. This resulted in inconsistent behavior sometimes
35 even on the same server.
37 Samba 3.0.8pre2 obeys the following rules when applying the username
40 * When performing local authentication, the username map is
41 applied to the login name before attempting to authenticate
43 * When relying upon a external domain controller for validating
44 authentication requests, smbd will apply the username map
45 to the fully qualified username (i.e. DOMAIN\user) only
46 after the user has been successfully authenticated.
50 ######################################################################
54 Changes since 3.0.8pre1
55 -----------------------
67 o Jeremy Allison <jra@samba.org>
68 * Ensure we set errno = E2BIG when we overflow in the
69 fast-path character conversion code.
70 * Fix the roundup problem (returning 1mb roundup) for
72 * Added 'stat' command to smbclient to exercise the
73 UNIX_FILE_BASIC info level.
74 * Fix bug where we could incorrectly set sparse attribute.
75 * Fix incorrect locks/unlocks in tdb_lockkeys()/tdb_unlockkeys()
76 (reported by Taj Khattra <taj.khattra@gmail.com>).
77 * Remove locked keys tdb code.
78 * BUG 1886: Prevent delete on close being set for readonly files
79 (and return the correct error code).
80 * Ensure we pass most of the new lock tests except for the cancel
81 lock which is yet to be added (merged from Samba 4 branch).
82 * BUG 1947: Fix incorrect use of getpwnam() etc. interface.
83 * BUG 1956: Ensure errno is saved and restored consistently on a normal_close.
86 o Andrew Bartlett <abartlet@samba.org>
87 * Fix NTLMv2 for use with pam_winbind.
88 * Remove conversion to and from UTF8 on the winbind pipe.
89 * Allow 'require_membership_of' and 'require-membership-of'.
90 * Fix the error code for 'you didn't specify a domain' in
92 * Use sys_getgroups() rather than scanning all groups
93 when generating SAMR replies.
96 o Gerald Carter <jerry@samba.org>
97 * BUG 1519: Match Windows 2000 behavior when opening a
98 printer using a servername in the form of an IP address or
100 * BUG 1907: remove extra slashes from the printer name in
101 getprinterdriverdir_1().
102 * Fix standard_sub_snum() to use the current user's gid.
103 * Fix background queue update bug (based on Volker's initial work
105 * Add 'force printername' service parameter for people that want
106 to enforce printername == sharename for spoolss printing.
107 * Ensure consistent usage of the username map. Use the fully
108 qualified DOMAIN\user format for 'security = domain|ads' and
109 apply after authentication has succeeded.
110 * Cosmetic fix for getent output -- lowercase the username only
111 and not the complete domain\username string.
114 o Darren Chew <darrenc@vicscouts.asn.au>
115 * Solaris packaging fixes.
118 o Guenther Deschner <gd@samba.org>
119 * Fix typos in net's usage-output.
120 * Fix the paranoia-check to ensure the ldap-attribute and the
121 smb.conf-parameter for samba's "algorithmic rid base" in ldapsam
123 * Fix several bugs in the _samr_query_useraliases() rpc reply.
124 * Check correct string length when verifying password-policies
125 and using extended characters (Thanks to Uwe Morgenroth from CC
126 Compunet and Volker).
127 * Make 'password history'-behavior in ldapsam more consistent.
128 * Adding "Windows x64" as architecture string and driverdir "x64"
129 for the 64bit AMD platform.
130 * BUG 1343: Readd WKGUID-binding to match the correct default-
131 locations of new User-, Group- and Machine-Accounts in Active
132 Directory (this got lost during the last trunk-merge).
133 * Fix printer-migration w.r.t. to new naming-convention for
135 * Allow to migrate win2k3/xp-drivers as well.
136 * Add client-side support of triggering ads printer publishing
137 over msrpc setprinter calls inside the net-tool.
138 * Add the idmap_rid module (written in conjunction with
139 Sumit Bose <sbose@suse.de>).
142 o Steve French <sfrench@us.ibm.com>
143 * Fix IP address override in mount.cifs mount helper and clean
144 up warning messages from the sparse tool and expand syntax help.
145 * Strip guest mount option off before sending to kernel mount
146 routine to avoid logging spurious message.
149 o Satoh Fumiyasu <fumiya@samba.gr.jp>
150 * BUG 1732: Limit share names returned by RAP based on windows
151 character width, not unix character width.
155 * Pass create options parameter to nt_create_andx() function
156 from the python bindings.
157 * BUG 1864: Add sd->type field to security descriptor Python
159 * Return an error if a Netapp filer returns NT_STATUS_ACCESS_DENIED
160 when trying to return the security descriptor for a file.
163 o Michael Gravey <michel.gravey@optogone.com>
164 * BUG 1776: Fix warnings when building modules caused by
165 certain versions of GNU ld not using the the default
166 --allow-shlib-undefined flag.
169 o Chris Hertel <crh@samba.org>
170 * Fix bug where an invalid MAC address would be printed by
171 a node status lookup from nmblookup.
174 o Uli Iske <iske@elkb.de>
175 * Update the DNS/eDirectory LDAP schema file.
178 o Björn Jacke <bjacke@sernet.de>
179 * BUG 1766: Unify charset-handling in Content-Type:-headers to
180 UTF-8. Reformat msgstr in msg-files to UTF-8.
181 * Do not use display charset for swat output.
182 * Convert the share names correctly from unix encoding to web
183 encoding and vice versa.
184 * Convert files from status page from unix charset to UTF-8.
187 o Tom Lackemann <cessnatomny@yahoo.com>
188 BUG 1954: Fix memory leak in posix acl code.
191 o Volker Lendecke <vl@samba.org>
192 * BUG 1545, 1823: Only issue the ldap extended password change
193 operation if the ldap server supports it. Also ignore object
194 class violation errors from the extended operation.
195 * Optimization for 'idmap backend = ldap': When asking sid2id
196 for the wrong type, don't ask ldap when we have the opposite mapping
198 * Fix ldapsam_compat homeDrive.
199 * Add usersidlist and allowedusers subcommands to the net tool
200 in order to support scanning a file server's share and list
201 all users who have permission to connect there.
202 * Allow for multiple DC's to be named as #1c names in lmhosts.
205 o Love <lha@stacken.kth.se>
206 * BUG 1955: Inconsistent error return.
209 o Sorin Manolache <sorinm@gmail.com>
213 o Bill McGonigle <bill+samba@bfccomputing.com>
214 BUG 1926: Type in debug message.
218 * BUG 1822: Add -D_REENTRANT to CPPFLAGS and -lthread to LDFLAGS
222 o Tim Potter <tpot@samba.org>
223 * Fix bug in Python printerdata wrapper.
224 * BUG 1762: nss_winbind fixes on AIX 5.x (patch from
225 <bugzilla-samba@thewrittenword.com>).
226 * Fix parameter confusion in priming of name-to-sid cache
227 (Found by Qiao Yang).
228 * BUG 1888: Remove '..' from all pre-processor commands.
229 * BUG 1903: Change some #if DEBUG_PASSWORD's to #ifdef
233 o Richard Sharpe <rsharpe@samba.org>
234 * Ensure cli_write() can support writes >= 65536 bytes.
237 o Simo Sorce <idra@samba.org>
238 * Fix memory corruption bug caused in freeing static memory.
241 o Andrew Tridgell <tridge@samba.org>
242 * Reduces the number of tdb locking calls made on file IO.
245 o Jelmer Vernooij <jelmer@samba.org>
246 * Complain if 'password chat' doesn't contain the %u variable
247 (based on a patch by Ronan Waide).
250 Changes for older versions follow below:
252 --------------------------------------------------
253 =================================
254 Release Notes for Samba 3.0.8pre1
256 =================================
258 Common bugs fixed in 3.0.8pre1 include:
260 o Compile fixes for HP-UX
261 o Fixes for the printer publishing code used when
262 joined to an AD domain.
263 o Incompatibilities with file system quotas.
265 New features included in the 3.0.8pre1 release are:
267 o New migration functionality added the the net tool
268 for files/directories, printers, and shares.
271 Change in Winbindd Behavior
272 ---------------------------
274 All usernames returned by winbindd are now converted to lower
275 case for better consistency. This means any winbind installation
276 relying on the winbind username will need to rename existing
277 directories and/or files based on the username (%u and %U) to lower
278 case (e.g. mv $name `echo $name | tr '[A-Z]' '[a-z]'`). This may
279 include mail spool files, home directories, valid user lines in
287 o Jeremy Allison <jra@samba.org>
288 * Ensure extended security bit is on only if we negotiated
290 * Simplify statcache to use an in-memory tdb.
291 * If you're selecting a hash algorithm for tdb, you need
292 to do it at open time.
293 * Removed old dir caching code - not being used now we
294 have the statcache anyway.
295 * Simplify the mangle hash code to use an in-memory tdb.
296 * Merge iconv changes from Samba 4 branch.
297 * Fix parsing of names ending in dot and a few other error
299 * BUG 1667: Smbpasswd file could be left locked on some
301 * Fixes for smbclient tar functionality.
302 * BUG 1743: Fix logic bug the deferred open code.
303 * Don't try to set security descriptors on shares where
304 this has been turned off.
305 * Return correct error codes on old SEARCH call.
308 o Andrew Bartlett <abartlet@samba.org>
309 * Avoid changing the machine account password in the passdb
310 backend, when it has 'already been changed'. This occurs
311 in situations where the secure channel between the workstation
312 and the DC breaks down, such as occurred in the MS04-11
314 * Fix utility name in error message in ntlm_auth.
317 o Igor Belyi <sambauser@katehok.ac93.org>
318 * Ensure pdb user is deleted first before deleting UNIX
319 user (LDAP backend needs this ordering).
322 o Cornelio Bondad Jr <Corny.Bondad@hp.com>
323 * Fix core dump in 'net rpc vampire'.
326 o Vince Brimhall <vbrimhall@novell.com>
327 * Make ldapsam_compat robust against NULL attributes.
330 o Gerald Carter <jerry@samba.org>
331 * Don't limit the number of groups returned by winbindd_getgroups()
335 o Sean Chandler <sean.chandler@verizon.net>
336 * Fix memlieak in cliconnect.c.
339 o Guenther Deschner <gd@samba.org>
340 * add IA64 to the architecture table of printer-drivers.
341 * Add file/share/printer migration functionality to
343 * Show correct help for net groupmap commands.
344 * Fix deadlock loop in winbind's required_membership_sid
346 * Bring the same level of "required_membership"-functionality
347 that ntlm_auth uses, to pam_winbindd as well.
348 * Prevent "net lookup kdc" from seg-faulting when
349 using our own implementation of krb5_lookup_kdc with
351 * Adding getprinter level 7 to rpcclient.
352 * Support migrating printers|shares|files from Server A
353 to Server B while running the net-command on client C.
354 * Fixed krb5_krbhost_get_addrinfo()-parameters and make
355 failure of this call non-critical (Thanks to Love @ Heimdal
356 for the explanation and patch).
359 o Arthur van Dongen <avdongen@xs4all.nl>
360 * Fix typos in pam_winbind log messages and SuSE
364 o Rob Foehl <rwf@loonybin.net>
365 * Typo fixes for log messages in printer publishing code.
366 * Fix memory leak in printer publishing code.
367 * Ensure print_backend_init() only gets called once.
368 * Have smbd check the published status of all printers
370 * Cleanup up the XXX_a_printer() API for consistency.
371 * Refactored the printer publishing code and include better
375 o Chris Hertel <crh@samba.org>
376 * Fix logic bug in splay tree data structure when finding
380 o Guenter Kukkukk <guenter.kukkukk@kukkukk.com>
381 * BUG 1590: Fix for talking to OS/2 clients (max_mux ignored).
384 o Volker Lendecke <vl@samba.org>
385 * Robustnss fix for winbindd when sending multiple requests
386 at a high rate for a slow operation.
387 * Solve the problem of user sids ending up with gid's
389 * Use sys_fork instead of fork for the dual daemon so that
390 we get the correct debug pid in the logfiles.
391 * Based on patch from jmcd, implement special lists for the LDAP
392 user attributes to delete.
393 * Fix creation of aliases via usrmgr. Winbind was too strict
394 checking the type of sids.
395 * Lowercase all usernames returned by winbind.
398 o Jim McDonough <jmcd@us.ibm.com>
399 * Allow 'net ads lookup' to rely on command line arguments
400 if contacting an ADS server fails; utilize cldap for lookups.
401 * Fixup formatting errors in TDB_LOG calls; add printf attribute
402 support to tdb log functions.
405 o Lars Mueller <lmuelle@suse.de>
406 * Small fixes for autogen.sh to deal with version detection
407 of autoconf and autoheader; fixes for examples using
408 libtool to adhere to stricter syntax of newer version.
411 o Stefan Metzmacher <metze@samba.org>
412 * Fix crash in smbcquotas and smbcacls caused by setup_logging().
413 * Fix client quota support.
414 * Fix opening of system quota file.
417 o Henrik Nordstrom <hno@squid-cache.org>
418 * Allow winbindd to return the correct number of groups
419 when the groups array must be enlarged.
422 o Tim Potter <tpot@samba.org>
423 * BUG 1360: (correct fix) Use -Wl when passing flags to
425 * HP-UX compile fixes (from JBravo on #samba-technical).
426 * BUG 1731: More HP-UX compiles fixes.
427 * BUG 1778: Include yp_prot.h before ypclnt.h as AIX 5.2
428 spits the dummy otherwise.
431 o Richard Renard <rrenard@idealx.com>
432 * Fix usermgr.exe and trust relationships.
435 o Paul Szabo <psz@maths.usyd.edu.au>
436 * Fix to make find_workgroup use the same
437 truncation as create_workgroup.
440 o Simo Sorce <idra@samba.org>
441 * Added check password script code in examples/auth/crackcheck/
444 o Andrew Tridgell <tridge@samba.org>
445 * Remove lp_use_mmap() from map_file() since the latter
446 is for read only and does not require coherence.
447 * Ensure that the uuid pack/unpack routines do not go past
448 the end of the structure.
449 * Converted Samba 3 tree to use the new utf-16 aware iconv
451 * Changed iconv to recognise UCS-2LE and UTF-16LE as synonyms.
452 * Ensure configure only uses '=' instead of the bashism '=='.
455 o Jelmer Vernooij <jelmer@samba.org>
456 * Convert internal data to UTF-8 before calling libxml2.
460 * BUG 1541: Fix recursive ls in smbclient.
463 o Igor Zhbanov <bsg@uniyar.ac.ru>
464 * BUG 1797: Prevent winbind and nmbd from ignoring the "-l"
468 --------------------------------------------------
469 =============================
470 Release Notes for Samba 3.0.7
472 =============================
474 This is the latest stable release of Samba. This is the version
475 that production Samba servers should be running for all
476 current bug-fixes. There have been several important issues
477 fixes since the 3.0.6 release. See the "Changes" section for
478 details on exact updates.
480 Common bugs fixed in 3.0.7 include:
482 o Fixes for two Denial of Service vulnerabilities
483 (CVE ID# CAN-2004-0807 & CAN-2004-0808).
484 o Winbind failure to return user entries under certain
486 o Syntax errors in the OpenLDAP schema file (samba.schema).
487 o Printing errors caused by not setting default values
488 for the various printing commands.
497 Parameter Name Action
498 -------------- ------
499 winbind enable local accounts disabled by default
504 o Jeremy Allison <jra@samba.org>
505 * Fix parsing of names ending in dot and a few other error
507 * BUG 1674: Move the symlinks checks into reduce_name().
508 * Fix memleak when checking the valid names smb.conf option.
509 * Fix memleak on error return path in the file open code.
510 * More paranoia checks in the hash2 mangling code.
511 * Fix syntax error in configure.in.
512 * Match Win2k3's behavior for pathname parsing error returns.
513 * Make nmbd more robust against bad netbios packets
515 * Add more checks for invalid ASN.1 packets for SPNEGO packets
519 o Andrew Bartlett <abartlet@samba.org>
520 * Janitor work in loadparm.c -- remove unused parameters.
523 o Gerald Carter <jerry@samba.org>
524 * BUG 1464: Ensure that printing commands are initialized even
525 if the 'printing' parameter is not explicitly set.
526 * Resolve name conflict on DEC OSF-5.1 (inspired by patch from
527 Adharsh Praveen <rprav@india.hp.com>)
528 * Work around parsing error in the print change notify code.
529 * remove duplicate declaration of getprintprocdir from
531 * Only use sAMAccountName and not userPrincipalName when looking
532 up a username in AD since the breaks winbindd (lookup_name()
533 only works with the sAMAccountName).
534 * Fix bug with winbindd_getpwnam() caused by Microsoft DC's not
535 filling in the username in the user_info3.
536 * Fix logic bug in the check for creating a user's home directory
537 in register_vuid(); caused home directory to be mismatched to
538 the first share in smb.conf under certain conditions.
539 * BUG 1656: rename auto.a to auto.smb.
540 * Ensure that we assign our pid to print jobs (and not our
541 parent's pid); ensures that spooling jobs from dead smbds
542 are removed from the tdb.
543 * Disable 'winbind enable local accounts' by default.
544 * Adding some initial checks for DragonFly (same as
548 o Guenther Deschner <gd@samba.org>
549 * Use SMB_ASSERT() to track down NULL printer names in
551 * Revert fix for BUG 1474 to avoid unnecessary packaging
555 o Olaf Flebbe <o.flebbe@science-computing.de>.
556 * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3
558 * BUG 1626: More compile fixes.
561 o Rob Foehl <rwf@loonybin.net>
562 * Don't clear the PRINT_ATTRIBUTE_PUBLISHED was getting reset
563 by attempts to sanitize the defined attributes.
566 o SATOH Fumiyasu <fumiya@miraclelinux.com>
567 * BUG 1546: Preserve errno in MB strupper_m/strlower_m.
570 o Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>.
571 * BUG 1657: Remove used initialized variable,
572 * BUG 1658: Add a little bit of const.
575 o Volker Lendecke <vl@samba.org>
576 * If there's garbage in the pidfile, we should not panic
577 but assume that no one else is around. We can't find the
581 o Jim McDonough <jmcd@us.ibm.com>
582 * Fixup format string in the tdb error messages.
585 o Jonas Olsson <lexicon@lysator.liu.se>
586 * BUG 1416: Don't reuncture a users list to NGROUPS_MAX when
587 reporting the list in usrmgr.exe.
590 o Tim Potter <tpot@samba.org>
591 * Fix out-of-tree builds (problem with the script to generate
592 the svn version number).
593 * BUG 1360: Need to use -Wl when passing flags to the linker.
594 * BUG 1741: Define a struct nss_groupsbymem for HPUX 11 which
595 doesn't have one of its own.
597 o Simo Sorce <idra@samba.org>
598 * Fixup compile issues on AIX caused by broken strlen() and
600 * Update debian packaging files.
603 o Dimitri van der Spek <dwspek@aboveit.nl>
604 * Use the correct counter when copying group rids from the
605 user_info3 struct in pam_winbind.
608 o Qiao Yang <qyang@stbernard.com>
609 * BUG 1622: Only cache the user
612 --------------------------------------------------
614 =============================
615 Release Notes for Samba 3.0.6
617 =============================
619 Common bugs fixed in 3.0.6 include:
621 o Schannel failure in winbindd.
622 o Numerous memory leaks.
623 o Incompatibilities between the 'write list' and 'force user'
625 o Premature optimization of the open_directory() internal
626 function that broke tools such as the ArcServe backup
627 agent, Macromedia HomeSite, and Robocopy.
628 o Corrupt workgroup names in nmbd's browse.dat.
629 o Sharing violation errors commonly seen when opening
630 when serving Microsoft Office documents from a Samba
632 o Browsing problems caused by an apostrophe (') in the
633 computer's description field.
634 o Problems creating special file types from UNIX CIFS
635 clients and enabling 'unix extensions'.
636 o Fix stalls in smbd caused by inaccessible LDAP servers.
637 o Remove various memory leaks.
638 o Fix issues in the password lockout feature.
640 New features introduced in this release include:
642 O Support symlinks created by CIFS clients which
643 can be followed on the server.
644 o Using a cups server other than localhost.
645 o Maintaining the service principal entry in the system
646 keytab for integration with other kerberized services.
647 Please refer to the 'use kerberos keytab' entry in
648 smb.conf(5). When using the heimdal kerberos libraries,
649 you must also specify the following in /etc/krb5.conf:
651 default_keytab_name = FILE:/etc/krb5.keytab
652 o Support for maintaining individual printer names
653 stored separately from the printer's sharename.
654 o Support for maintaining user password history.
655 o Support for honoring the logon times for user in a
658 --------------------------------------------
659 unix extensions = yes (default) and symlinks
660 --------------------------------------------
662 Beginning with Samba 3.0.6pre1 (formerly known as 3.0.5pre1),
663 clients supporting the UNIX extensions to the CIFS protocol
664 can create symlinks to absolute paths which will be **followed**
665 by the server. This functionality has been requested in order
666 to correctly support certain applications when the user's home
667 directory is mounted using some type of CIFS client (e.g. the
668 cifsvfs in the Linux 2.6 kernel).
670 If this behavior is not acceptable for your production environment
671 you can set 'wide links = no' in the specific share declaration in
672 the server's smb.conf. Be aware that disabling wide link support
673 out of a share in Samba may impact the server's performance due
674 to the fact that smbd will now have to check each path additional
675 times before traversing it.
677 ------------------------
678 Password History Support
679 ------------------------
681 The new password history feature allows smbd to check the new
682 password in password change requests against a list of the user's
683 previous passwords. The number of previous passwords to save can
684 be set using pdbedit (4 in this example):
686 root# pdbedit -P "password history" -C 4
688 When using the ldapsam passdb backend, it is vital to secure the
689 following attributes from access by non-administrative users:
693 * sambaPasswordHistory
695 You should refer to your directory server's documentation on how
696 to implement this restriction.
705 Parameter Name Action
706 -------------- ------
708 defer sharing violations New
709 force unknown acl user New
711 printcap cache time New
712 use kerberos keytab New
716 o Jeremy Allison <jra@samba.org>
717 * Correct path parsing bug that broke DeletePrinterDriverEx().
718 * Fix bugs in check_path_syntax() caught by asserts.
719 * Internal change - rearrange internal global case setting
720 variables to a per connection basis.
721 * BUG 1345: Fix premature optimization in unix_convert().
722 * Allow clients to truncate a locked file.
723 * BUG 1319: Always check to see if a user as write access
724 to a share, even when 'force user' is set.
725 * Fix specific case of open that doesn't cause oplock break,
727 * Correct sid type is WKN_GROUP, not alias. Added some
728 more known types (inspired by patch from Jianliang Lu).
729 * Allow creation of absolute symlink paths via CIFS clients.
730 * Fix charset bug in when invoking send_mailslot().
731 * When using widelinks = no, use realpath to canonicalize
732 the connection path on connection create for the user.
733 * Enhance stat open code.
734 * Fix unix extensions mknod code path.
735 * Allow unix domain socket creation via unix extensions.
736 * Auto disable the 'store dos attribute' parameter if the
737 underlying filesystem doesn't support EAs.
738 * Implement deferred open code to fix a bug with Excel files
740 * BUG 1427: Catch bad path errors at the right point. Ensure
741 all our pathname parsing is consistent.
742 * Fix SMB signing error introduced by the new deferred open
744 * Change default setting for case sensitivity to "auto". (see
745 commit message -- r1154 -- for details).
746 * Add new remote client arch -- CIFSFS.
747 * Allow smbd to maintain the service principal entry in the
748 system keytab file (based on patch Dan Perry <dperry@pppl.gov>,
749 Guenther Deschner, et. al.).
750 * Fix longstanding memleak bug with logfile name.
751 * Fix incorrect type in printer publishing (struct uuid,
753 * Heimdal compile fixes after introduction of the new ketyab
755 * Ensure we check attributes correctly on rename request.
756 * Ensure we defer a sharing violation on rename correctly.
757 * BUG 607: Ensure we remove DNS and DNSFAIL records immediately
759 * Fix bogus error message when using "mangling method = hash"
761 * Turn on sendfile by default for non-Win9x clients.
762 * Handle non-io opens that cause oplock breaks correctly.
763 * Ensure ldap replication sleep time is not more than 5 seconds.
764 * Add support for storing a user's password history.
765 LDAP portion of the code was based on a patch from
766 Jianliang Lu <j.lu@tiesse.com>.
767 * Correct memory leaks found in the password change code.
768 * Fix support for the mknod command with the Linux CIFS client.
769 * Remove support for passing the new password to smbpasswd
770 on the command line without using the -s option.
771 * Ensure home directory service number is correctly reused
772 (inspired by patches from Michael Collin Nielsen
773 <michael@hum.aau.dk>).
774 * Fix to stop printing accounts from resetting the bas
775 password and account lockout flags.
776 * If a account was locked out by an admin (and has a bad
777 password count of zero) leave it locked out until an admin
778 unlocks it (but log a message).
779 * Ensure we return the same ACL revision on the wire that
781 * BUG 1578: Hardcode replacement for invalid characters as '_'
782 (based on fix from Alexander E. Patrakov <patrakov@ums.usu.ru>).
783 * Fix hashed password history for LDAP backends.
784 * Enforce logon hours restrictions if confiogured (based on code
785 from Richard Renard <rrenard@idealx.com>).
786 * BUG 1606: Force smbd to disable sendfile with DOS clients
787 and ensure that the chained header is filled in for ...&X
789 * BUG 1602: Fix access to shares when all symlink support
794 o Tom Alsberg <alsbergt@cs.huji.ac.il>
795 * Allow pdbedit to export a single user from a passdb backend.
798 o Andrew Bartlett <abartlet@samba.org>
799 * Fix parsing bug in GetDomPwInfo().
800 * Fix segfault in 'ntlm_auth --diagnostics'.
801 * Re-enable code to allow sid_to_gid() to perform a group
802 mapping lookup before checking with winbindd.
803 * Fix memory leak in the trans2 signing code.
804 * Allow more flexible GSS-SPENGO client and server operation
806 * Improve smbd's internal random number generation.
807 * Fix a few outstanding long password changes in smbd.
808 * Fix LANMAN2 session setup code.
811 o Eric Boehm <boehm@nortelnetworks.com>
812 BUG 703: Final touches on netgroup case lookups.
815 o Jerome Borsboom <j.borsboom@erasmusmc.nl>
816 * Ensure error status codes don't get overwritten in
817 lsa_lookup_sids() server code.
818 * Correct bug that caused smbd to overwrite certain error
819 codes when returning up the call stack.
820 * Ensure the correct sid type returned for builtin sids.
823 o Gerald Carter <jerry@samba.org>
824 * Fix a few bugs in the Fedora Packaging files.
825 * Fix for setting the called name to by our IP if the
826 called name was *SMBSERVER and *SMBSERV. Fixes issue
827 with connecting to printers via \\ip.ad.dr.ess\printer
829 * BUG 1315: fix for schannel client connections to servers
830 when we haven't specifically negotiated AUTH_PIPE_SEAL.
831 * Allow PrinterDriverData valuenames with embedded backslashes
832 (Fixes bug with one of the Konica Fiery drivers).
833 * Fixed string length miscalculation in netbios names that
834 resulted in corrupt workgroup names in browse.dat.
835 * When running smbd as a daemon, launch child smbd to update
836 the lpq cache listing in the background.
837 * Allow printers "Printers..." folder to be renamed to a string
838 other than the share name.
839 * Allow winbindd to use domain trust account passwords when
840 running on a Samba DC to establish an schannel to remote
842 * Fix bad merge and ensure that we always use tdb_open_log()
843 instead of tdb_open_ex() (the former call enforce the 'use
845 * BUG 1221: revert old change that used single and double
846 quotes as delimeters in next_token(), and change
847 print_parameter() to print out parm values surrounded by
848 double quotes (instead of single quotes).
849 * Prevent home directories added during the SMBsesssetup&X from
850 being removed as unused services.
851 * Invalidate the print object cache for open printer handles when
852 smbd receives a message that an attribute on a given printer
854 * Cause the configure script to exit if --enable-cups[=yes] is
855 defined and the system does not have the cups devel files
857 * BUG 1297: Prevent map_username() from being called twice
859 * Ensure that we use the userPrincipalName AD attribute
860 value for LDAP SASL binds.
861 * Ensure we remove the tdb entry when deleting a job that
863 * BUG 1520: Work around bug in Windows XP SP2 RC2 where the
864 client sends a FindNextPrintChangeNotify() request without
865 previously sending a FindFirstPrintChangeNotify(). Return
866 the same error code as Windows 2000 SP4.
867 * BUG 1516: Manually declare ldap_open_with_timeout() to
868 workaround compiler errors on IRIX (or other systems without
870 * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from
872 * Corrected syntax error in the OID for sambaUnixIdPool,
873 sambaSidEntry, & sambaIdmapEntry object classes.
874 * Tighten the cache consistency with the ntprinters.tdb entry
875 an the in memory cache associated with open printer handles.
876 * Make sure that register_messages_flags() doesn't overwrite
877 the originally registered flags.
880 o Fabien Chevalier <fabien.chevalier@supelec.fr>
881 * Debian BUG 252591: Ensure that the return value from the
882 number of available interfaces is initialized in case no
883 interfaces are actually available.
886 o Guenther Deschner <gd@sernet.de>
887 * Implement 'rpcclient setprintername'.
888 * Add local groups to the user's NT_TOKEN since they are
889 actually supported now.
890 * Heimdal compile fixes after introduction of the new keytab
892 * Correctly honor the info level parameter in 'rpcclient
894 * Reintroduce 'force unknown acl user' parameter. When getting a
895 security descriptor for a file, if the owner sid is not known,
896 the owner uid is set to the current uid. Same for group sid.
897 * Ensure that REG_SZ values in the SetPrinterData actually
898 get written in UNICODE strings rather than ASCII.
899 * Ensure that the last kerberos error return is not invalid.
900 * Display share ACL entries from rpcclient.
901 * Correct infinite loop in pam_winbind's verification of
902 group membership in the 'other sids' field in the user_info3
906 o Fabian Franz <FabianFranz@gmx.de>
907 * Support specifying a port in the device URL passed to smbspool.
910 o Steve French <sfrench@us.ibm.com>
911 * Handle -S and user mount parms in mount.cifs.
912 * Fix user unmount of shares mount with suid mount.cifs.
913 * prevent infinite recusion in reopen_logs() when expanding
914 the smb.conf variable %I.
917 o Bjoern Jacke <bj@sernet.de>
918 * Install libsmbclient into $(LIBDIR), not into hard coded
919 ${prefix}/lib. This helps amd64 systems with /lib and /lib64
920 and an explicit configure --libdir setting.
923 o <kawasa_r@itg.hitachi.co.jp>
924 * Correct more memory leaks and initialization bugs.
925 * Fix bug that prevented core dumps from being generated
927 * Connect to the winbind pipe in non-blocking mode to
928 prevent processes from hanging.
932 o Stephan Kulow <coolo@suse.de>
933 * Fix crash bug in libsmbclient.
936 o Volker Lendecke <vl@samba.org>
937 * Added vfs_full_audit module.
938 * Add vfs_afsacl.c which can display & set AFS acls via
939 the NT security editor.
940 * Fix crash bug caused by trying to Base64 encode a NULL string.
941 * Fix DOS error code bug in reply_chkpath().
942 * Correct misunderstanding of the max_size field in
943 cli_samr_enum_als_groups; it is more like an account_control
944 field with individual bits what to retrieve.
945 * Implement 'net rpc group rename' -- rename domain groups.
946 * Implement the 'cups server' option. This makes it possible
947 to have virtual smbd's connect to different cups daemons.
948 * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
949 * Fix sid_to_gid() calls in winbindd to prevent loops.
950 * Ensure that local_sid_to_gid() sets the type of the group on
952 * Make sure that the clients are given back the IP address to
953 which they connected in the case of a multi-homed host. Only
954 affects strings the spoolss printing replies.
955 * Fix the bad password lockout. This has not worked as pdb_ldap.c
956 did not ask for the modifyTimestamp attribute, so it could
957 not find it. Try not to regress by not putting that attrib
958 in the main list but append it manually for the relevant searches.
959 * Fix two memleaks in login_cache.c.
960 * fixes memory bloat when unmarshalling strings.
961 * Fix compile errors using gcc 3.2 on SuSE 8.2.
962 * Fix the build for systems without kerberos headers.
963 * Allow winbindd to handle authentication requests only when
964 started without either an 'idmap uid' or 'idmap gid' range.
965 * Fix the build for systems without ldap headers.
966 * Fix interaction between share security descriptor and the
967 'read only' smb.conf option.
968 * Fix bug that caused _samr_lookupsids() with more than 32 (
969 MAX_REF_DOMAINS) SIDs to fail.
970 * Allow the 'idmap backend' parameter to accept a list of
971 LDAP servers for failover purposes.
972 * Revert code in smbd to remove a tdb when it has become
974 * Add paranoid checks when mapping SIDs to a uid/gid to
975 ensure that the type is correct.
976 * Initial work on getting client support for sending mailslot
978 * Add 'ldap timeout' parameter.
979 * Dont always uppercase 'afs username map'.
980 * Expand aliases for getusersids as well.
981 * Improved NT->AFS ACL mapping VFS module.
984 o Herb Lewis <herb@samba.org>
985 * Add the acls debug class.
986 * Fix logic bug in netbios name truncate routine.
987 * Fix smbd crash caused by smbtorture IOCTL test.
988 * Fix errno tromping before calling iconv to reset the
990 * need to leave empty dacl so we can remove last ACE.
993 o Jianliang Lu <Jianliang.Lu@getronics.com>
994 * Fix to stop smbd hanging on missing group member in
996 * Make sure Samba returns the correct group types.
997 * Reset the bad password count password counts upon a successful login.
1000 o Jason Mader <jason@ncac.gwu.edu>
1001 * BUG 1385: Don't use non-consts in a structure initialization.
1004 o Jim McDonough <jmcd@us.ibm.com>
1005 * BUG 1279: SMBjobid fix for Samba print servers running on
1006 Big-Endian platforms.
1009 o Joe Meadows <jameadows@webopolis.com>
1010 * Add optional timeout parameter to ldap open calls.
1011 * Allow get_dc_list() to check the negative cache.
1014 o Stefan Metzmacher <metze@samba.org>
1015 * fix a configure logic bug for linux/XFS quotas when
1016 using --with-sys-quotas.
1017 * Use quota debug class in quota code.
1018 * print out the SVN revision by configure,
1021 o Buchan Milne <bgmilne@mandrake.org>
1022 * Mandrake packaging fixes.
1025 o Lars Mueller <lmuelle@suse.de>
1026 * BUG 1279: Added 'printcap cache time' parameter.
1027 * Fix afs related build issues on SuSE.
1028 * Fix compiler warnings in the kerberos client code.
1031 o James Peach <jpeach@sgi.com>
1032 * More iconv detection fixes for IRIX.
1033 * Compile fixed for systems that do not have C99/UNIX98 compliant
1034 vsnprintf by default.
1035 * Prevent smbd from attempting to use sendfile at all if it is
1036 not supported by the server's OS.
1037 * Allow SWAT to search for index.html when serving html files
1042 * Implement NFS quota support on FreeBSD.
1045 o Tim Potter <tpot@samba.org>
1046 * BUG 1360: Use -Bsymbolic when creating shared libraries to
1047 avoid conflicts with identical symbols in the global namespace
1048 when loading libnss_wins.so.
1051 o Richard Renard <rrenard@idealx.com>
1052 * Save the current password as it is being changed into the
1053 password history list.
1056 o Richard Sharpe <rsharpe@samba.org>
1057 * Fix error return codes on some lock messages.
1058 * BUG 1178: Make the libsmbclient routines callable
1060 * BUG 1333: Make sure we return an error code when
1062 * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when
1063 share mode locking requests fail.
1066 o Simo Sorce <idra@samba.org>
1067 * Update Debian stable & unstable packaging.
1068 * Tidy up parametric options in testparm output.
1071 o Richard Sharpe <rsharpe@samba.org>
1072 * Add sigchild handling to winbindd to restart the child
1073 daemon if necessary.
1076 o Tom Shaw <tomisfaraway@gmail.com>
1077 * Use winbindd_fill_pwent() consistently.
1080 o Nick Thompson <nickthompson@agere.com>
1081 * Protect smbd against broken filesystems which return zero
1085 o Andrew Tridgell <tridge@samba.org>
1086 * Fixed bug in handling of timeout in socket connections.
1089 o Nick Wellnhofer <wellnhofer@aevum.de>
1090 * Prevent lp_interfaces() list from being corrupted. Fixes
1091 bug where nmbd would lose the list of network interfaces
1092 on the system and consequently shutdown.
1095 o James Wilkinson <jwilk@alumni.cse.ucsc.edu>
1096 * Fix ntlm_auth memory leaks.
1099 o Jelmer Vernooij <jelmer@samba.org>
1100 * Additional NT status to unix error mappings.
1101 * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't
1102 get duplicate symbol errors.
1103 * Return an error when the last command read from stdin
1105 * Prepare for better error checking in tar.
1106 * BUG 1474: Fix build of --with-expsam stuff on Solaris.
1109 Changes for older versions follow below:
1111 --------------------------------------------------
1113 =============================
1114 Release Notes for Samba 3.0.5
1116 =============================
1118 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with
1119 the exception of correcting the two security issues outlined
1122 ######################## SECURITY RELEASE ########################
1124 Summary: Multiple Potential Buffer Overruns in Samba 3.0.x
1125 CVE ID: CAN-2004-0600, CAN-2004-0686
1126 (http://cve.mitre.org/)
1129 This is the latest stable release of Samba. This is the version
1130 that production Samba servers should be running for all current
1133 It has been confirmed that versions of Samba 3 prior to v3.0.4
1134 are vulnerable to two potential buffer overruns. The individual
1135 details are given below.
1141 Affected Versions: Samba 3.0.2 and later
1143 The internal routine used by the Samba Web Administration
1144 Tool (SWAT v3.0.2 and later) to decode the base64 data
1145 during HTTP basic authentication is subject to a buffer
1146 overrun caused by an invalid base64 character. It is
1147 recommended that all Samba v3.0.2 or later installations
1148 running SWAT either (a) upgrade to v3.0.5, or (b) disable
1149 the swat administration service as a temporary workaround.
1151 This same code is used internally to decode the
1152 sambaMungedDial attribute value when using the ldapsam
1153 passdb backend. While we do not believe that the base64
1154 decoding routines used by the ldapsam passdb backend can
1155 be exploited, sites using an LDAP directory service with
1156 Samba are strongly encouraged to verify that the DIT only
1157 allows write access to sambaSamAccount attributes by a
1158 sufficiently authorized user.
1160 The Samba Team would like to heartily thank Evgeny Demidov
1161 for analyzing and reporting this bug.
1167 Affected Versions: Samba 3.0.0 and later
1169 A buffer overrun has been located in the code used to support
1170 the 'mangling method = hash' smb.conf option. Please be aware
1171 that the default setting for this parameter is 'mangling method
1172 = hash2' and therefore not vulnerable.
1174 Affected Samba 3 installations can avoid this possible security
1175 bug by using the default hash2 mangling method. Server
1176 installations requiring the hash mangling method are encouraged
1177 to upgrade to Samba 3.0.5.
1180 ##################################################################
1182 --------------------------------------------------
1184 =============================
1185 Release Notes for Samba 3.0.4
1187 =============================
1189 Common bugs fixed in Samba 3.0.4 include:
1191 o Password changing after applying the patch described in
1192 the Microsoft KB828741 article to Windows clients.
1194 o Managing print jobs via Windows on Big-Endian servers.
1195 o Several memory leaks in winbindd and smbd.
1196 o Compile issues on AIX and *BSD.
1199 --------------------
1204 o Jeremy Allison <jra@samba.org>
1205 * Fix path processing for DeletePrinterDriverEx().
1206 * BUG 1303: Fix for Microsoft hotfix MS04-011 password change
1210 o Andrew Bartlett <abartlet@samba.org>
1211 * Fix alignment bug in GetDomPwInfo().
1214 o Alexander Bokovoy <ab@samba.org>
1215 * Fix utime[s]() issues in smbwrapper on systems
1216 that can boot both the 2.4 and 2.6 Linux kernels.
1219 o Gerald Carter <jerry@samba.org>
1220 * Fedora packaging fixes.
1221 * BUG 1302: Fix seg fault by not trying to optimize a list of
1222 invalid gids using the wrong array size.
1223 * BUG 1309: fix seg fault caused by trying to strdup(NULL)
1224 seen when 'security = share'.
1225 * Fix problems when using IBM's compiler on AIX.
1226 * Link Developer's Guide, Example Guide, and multi-page HOWTO
1227 into SWAT's welcome page.
1228 * BUG 1293: fix double free in printer publishing code.
1231 o Wim Delvaux <wim.delvaux@adaptiveplanet.com>
1232 * Fix for handling timeouts in socket connections.
1235 o Michel Gravey <michel.gravey@optogone.com>
1236 * BUG 483: patch from to fix password hash creation in SWAT.
1239 o Volker Lendecke <vl@samba.org>
1240 * Close the open NT pipes before the tdis.
1241 * Fix AFS related build issues.
1242 * Handle error conditions when base64 encoding a blob of 0 bytes.
1245 o Herb Lewis <herb@samba.org>
1246 * Added 'acls' debug class.
1248 o kawasa_r@itg.hitachi.co.jp
1249 * Multiple variable initialization and memory leak fixes.
1252 o Stephan Kulow <coolo@suse.de>
1253 * Fix string length bug in libsmbclient that caused KDE's
1255 * BUG 429: More libsmbclient fixes.
1258 o Jim McDonough <jmcd@us.ibm.com>
1259 * BUG 1007, 1279: Store the print job using a little-endian key.
1263 o Compile fix for OpenBSD (ENOTSUP not supported).
1266 o Stefan Metzmacher <metze@samba.org>
1267 * Correct bug in disks quota views from explorer.
1270 o Tim Potter <tpot@samba.org>
1271 BUG 1305: Correct debug output.
1274 o Richard Sharpe <rsharpe@samba.org>
1275 * Fix incorrect error code mapping.
1278 o Jelmer Vernooij <jelmer@samba.org>
1279 * Add additional NT_STATUS errorm mappings.
1282 Changes for older versions follow below:
1284 --------------------------------------------------
1286 =============================
1287 Release Notes for Samba 3.0.3
1289 =============================
1292 Common bugs fixed in Samba 3.0.3 include:
1294 o Crash bugs and change notify issues in Samba's printing code.
1295 o Honoring secondary group membership on domain member servers.
1296 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
1297 o Substitution errors for %[UuGg] in smb.conf.
1298 o winbindd crashes when using ADS security mode.
1299 o SMB signing errors.
1300 o Delays in winbindd startup caused by unnecessary
1301 connections to trusted domain controllers.
1302 o Various small memory leaks.
1303 o Winbindd failing due to expired Kerberos tickets.
1305 New features introduced in Samba 3.0.3 include:
1307 o Improved support for i18n character sets.
1308 o Support for account lockout policy based on
1309 bad password attempts.
1310 o Improved support for long password changes (>14
1311 characters) and strong password enforcement.
1312 o Support for Windows aliases (i.e. nested groups).
1313 o Experimental support for storing DOS attribute on files
1314 and folders in Extended Attributes.
1315 o Support for local nested groups via winbindd.
1316 o Specifying options to be passed directly to the CUPS libraries.
1318 Please be aware that the Samba source code repository was
1319 migrated from CVS to Subversion on April 4, 2004. Details on
1320 accessing the Samba source tree via anonymous svn can be found
1321 at http://svn.samba.org/samba/subversion.html.
1324 Changes since 3.0.2a
1325 --------------------
1329 Parameter Name Action
1330 -------------- ------
1333 only user Deprecated
1334 store dos attributes New
1336 winbind nested groups New
1342 o Jeremy Allison <jra@samba.org>
1343 * Ensure that Kerberos mutex is always properly unlocked.
1344 * Removed Heimdal "in-memory keytab" support.
1345 * Fixup the 'multiple-vuids' bugs in our server code.
1346 * Correct return code from lsa_lookup_sids() on unmapped
1347 sids (based on work by vl@samba.org).
1348 * Fix the "too many fcntl locks" scalability problem
1350 * Fixup correct (as per W2K3) returns for lookupsids
1351 as well as lookupnames.
1352 * Fixups for delete-on-close semantics as per Win2k3 behavior.
1353 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
1354 * Fix "unable to initialize" bug when smbd hasn't been run with
1355 new system and a user is being added via pdbedit/smbpasswd.
1356 * Added NTrename SMB (0xA5).
1357 * Fixup correct timeout values for blocking lock timeouts.
1358 * Fix various bugs reported by 'gentest'.
1359 * More locking fixes in the case where we own the lock.
1360 * Fix up regression in IS_NAME_VALID and renames.
1361 * Don't set allocation size on directories.
1362 * Return correct error code on fail if file exists and target
1364 * Added client "hardlink" comment to test doing NT rename with
1365 hard links. Added hardlink_internals() code - UNIX extensions
1366 now use this as well.
1367 * Use a common function to parse all pathnames from the wire for
1368 much closer emulation of Win2k3 error return codes.
1369 * Implement check_path_syntax() and rewrite string sub
1370 functions for better multibyte support.
1371 * Ensure msdfs referrals are multibyte safe.
1372 * Allow msdfs symlink syntax to be more forgiving.
1373 eg. sym_link -> msdfs://server/share/path/in/share
1374 or sym_link -> msdfs:\\server\share\path\in\share.
1375 * Cleanup multibyte netbios name support in nmbd ( based on patch
1376 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
1377 * Fix check_path_syntax() for multibyte encodings which have
1378 no '\' as second byte (based on work by ab@samba.org.
1379 * Fix the "dfs self-referrals as anonymous user" problem
1380 (based on patch from vl@samba.org).
1381 * BUG 1064: Ensure truncate attribute checking is done correctly
1382 on "hidden" dot files.
1383 * Fix bug in anonymous dfs self-referrals again.
1384 * Fix get/set of EA's in client library
1385 * Added support for OS/2 EA's in smbd server.
1386 * Added 'ea support' parameter to smb.conf.
1387 * Added 'store dos attributes' parameter to smb.conf.
1388 * Fix wildcard identical rename.
1389 * Fix reply_ctemp - make compatible with w2k3.
1390 * Fix wildcard unlink.
1391 * Fix wildcard src with wildcard dest renames.
1392 * BUG 1139: Fix based on suggestion by jdev@panix.com.
1393 swap lookups for user and group - group will do an
1394 algorithmic lookup if it fails, user won't.
1395 * Make EA's lookups case independent.
1396 * Fix SETPATHINFO in 'unix extensions' support.
1397 * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for
1398 the UNIX info levels, and the short case preserve names.
1401 o Timur Bakeyev <timur@com.bat.ru>
1402 * BUG 1144: only set --with-fhs when the argument is 'yes'
1403 * BUG 1152: Allow python modules to build despite libraries added
1404 to LDFLAGS instead of LDPATH.
1405 * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
1408 o Craig Barratt <cbarratt@users.sourceforge.net>
1409 * BUG 389: Allow multiple exclude arguments with smbclient
1410 tar -Xr options (better support for Amanda backup client).
1413 o Andrew Bartlett <abartlet@samba.org>
1414 * Include support for linking with cracklib for enforcing strong
1416 * Add support for >14 character password changes from Windows
1418 * Add 'admin set password' capability to 'net rpc'.
1419 * Allow 'net rpc samdump' to work with any joined domain
1420 regardless of smb.conf settings.
1421 * Use an allocated buffer for count_chars.
1422 * Add sanity checks for changes in the domain SID in an
1424 * Implement python unit tests for Samba's multibyte string
1426 * Remove 'unicode' smb.conf option.
1427 * BUG 1138: Fix support for 'optional' SMB signing and other
1429 * BUG 169: Fix NTLMv2-only behavior.
1430 * Ensure 'net' honors the 'netbios name' in the smb.conf by
1432 * Support SMB signing on connections using only the LANMAN
1433 password and generate the correct the 'session key' for these
1435 * Implement --required-membership-of=, an ntlm_auth option
1436 that restricts all authentication to members of this particular
1438 * Improve our fall back code for password changes.
1439 * Only send the ntlm_auth 'ntlm-server-1' helper client a '.'
1440 after the server had said something (such as an error).
1441 * Add 'ntlm-server-1' helper protocol to ntlm_auth.
1444 o Alexander Bokovoy <ab@samba.org>
1445 * Fix incorrect size calculation of the directory name
1447 * Fix problems with very long filenames in both smbd and smbclient
1448 caused by truncating paths during character conversions.
1449 * Fix smbfs problem with Tree Disconnect issued before smbfs
1453 o Gerald Carter <jerry@samba.org>
1454 * BUG 850: Fix 'make installmodules' bug on True64.
1455 * BUG 66: mark 'only user' deprecated.
1456 * Remove corrupt tdb and shutdown (only for printing tdbs,
1457 connections, sessionid & locking).
1458 * decrement smbd counter in connections.tdb in smb_panic().
1459 * RedHat specfile updates.
1460 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
1461 * BUG 1147; bad pointer case in get_stored_queue_info()
1463 * BUG 761: read the config file before initialized default
1464 values for printing options; don't default to bsd printing
1466 * Allow the 'printing' parameter to be set on a per share basis.
1467 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
1468 * BUG 848: don't create winbind local users/groups that already
1470 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
1472 * BUG 488: fix the 'show client in col 1' button and correctly
1473 enumerate active connections.
1474 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
1475 problem when storing the updating pid for the lpq cache.
1476 * BUG 1007 (partial): Fix print change notify bugs.
1477 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
1478 and winbind use default domain = yes. Also ensures that
1479 * BUG 1151: Ensure that winbindd users are passed through
1481 * Fix client rpc binds for ASU derived servers (pc netlink,
1483 * BUG 417, 1128: Ensure that the current_user_info is set
1484 consistently so that %[UuGg] is expanded correctly.
1485 * BUG 1195: Fix crash in winbindd when the ADS server is
1487 * BUG 1185: Set reconnect time to be the same as the
1488 'winbind cache time'.
1489 * Ensure that we return the sec_desc in smb_io_printer_info_2.
1490 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
1491 * BUG 1095: Honor the '-l' option in smbclient.
1492 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
1494 * Ensure server schannel uses the auth level requested by the
1496 * Removed --with-cracklib option due to potential crash issue.
1497 * Fix -lcrypto linking problem with wbinfo.
1498 * BUG 761: allow printing parameter to set defaults on a per
1500 * Add 'cups options' parameter to allow raw printing without
1501 changing /etc/cups/cupsd.conf.
1502 * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and
1504 * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
1505 * BUG 1288: resolve any machine netbios name (0x00) and not just
1507 * BUG 1199: Fix potential symlink issue in
1508 examples/printing/smbprint.
1511 o Robert Dahlem <Robert.Dahlem@gmx.net>
1512 * BUG 1048: Don't return short names when when 'mangled names = no'
1515 o Guenther Deschner <gd@suse.com>
1516 * Remove hard coded attribute name in the ads ranged retrieval
1518 * Add --with-libdir and --with-mandir to autoconf script.
1521 o Bostjan Golob <golob@gimb.org>
1522 * BUG 1046: Fix getpwent_list() so that the username is not
1523 overwritten by other fields.
1526 o Landon Fuller <landonf@opendarwin.org>
1527 * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller)
1528 to fix user/group enumeration on systems whose libc does not
1529 call setgrent() before trying to enumerate users (i.e.
1533 o Steve French <sfrench@us.ibm.com>
1534 * Update mount.cifs to version 1.1.
1535 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
1536 * Fixes to minor security bug in the mount helper.
1537 * Fix credential file mounting for cifs vfs.
1538 * Fix free of incremented pointer in cifsvfs mount helper.
1539 * Fix path canonicalization of the mount target path and help
1540 text display in the cifs mount helper.
1541 * Add missing guest mount option for mount.cifs.
1544 o SATOH Fumiyasu <fumiya@miraclelinux.com>
1545 * BUG 1055; formatting fixes for 'net share'.
1546 * BUG 692: correct truncation of share names and workgroup
1548 * BUG 1088: use strchr_m() for query_host (smbclient -L).
1549 * Patch from to internally count characters correctly.
1552 o Paul Green <paulg@samba.org>
1553 * Update VOS _POSIX_C_SOURCE macro to 200112L.
1554 * Fix bug in configure.ion by moving the first use of
1555 AC_CHECK_HEADERS so it is always executed.
1556 * Fix configure.in to only use $BLDSHARED to select whether to
1557 build static or shared libraries.
1560 o Pat Haywarrd <Pat.Hayward@propero.net>
1561 * Make the session_users list dynamic (max of 128K).
1564 o Cal Heldenbrand <calzplace@yahoo.com>
1565 * Fix for for 'pam_smbpass migrate' functionality.
1568 o Chris Hertel <crh@samba.org>
1569 * fix enumeration of shares 12 characters in length via
1573 o Ulrich Holeschak <ulrich@holeschak.de>
1574 * BUG 932: fix local password change using pam_smbpass
1577 o Krischan Jodies <kj@sernet.de>
1578 * Implement 'net rpc group delete'
1581 o John Klinger <john.klinger@lmco.com>
1582 * Return NSS_SUCCESS once the max number of gids possible
1583 has been found in initgroups() on Solaris.
1584 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
1587 o Volker Lendecke <vl@samba.org>
1588 * Fix success message for net groupmap modify.
1589 * Fix errors when enumerating members of groups in 'net rpc'.
1590 * Match Windows behavior in samr_lookup_names() by returning
1591 ALIAS(4) when you search in BUILTIN.
1592 * Fix server SAMR code to be able to set alias info for
1594 * Fix duplication of logic when creating groups via smbd.
1595 * Ensure that the HWM values are set correctly after running
1597 * Add 'net rpc group add'.
1598 * Implement 'net groupmap set' and 'net groupmap cleanup'.
1599 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
1600 * Fix wb_delgrpmem (wbinfo -o).
1601 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
1602 * Fix sambaUserWorkstations on a Samba DC.
1603 * Implement wbinfo -k: Have winbind generate an AFS token after
1604 authenticating the user.
1605 * Add expand_msdfs VFS module for providing referrals based on the
1606 the client's IP address.
1607 * Implement client side NETLOGON GetDCName function.
1608 * Fix caching of name->sid lookups.
1609 * Add support in winbindd for expanding nested local groups.
1610 * Fix memleak in winbindd.
1612 * Don't list domain groups from BUILTIN.
1613 * Fix memleak in policy handle utility functions.
1614 * Decrease winbindd startup time by only contacting trusted
1615 domains as necessary.
1616 * Allow winbindd to ask the DC for its domain for a trusted
1618 * Fix Netscape DS schema based on comments from
1619 <thomas.mueller@christ-wasser.de>.
1620 * Correct case where adding a domain user to a XP local group
1621 did a lsalookupname on the user without domain prefix, and
1623 * Fix segfault in winbindd caused by 'wbinfo -a'.
1626 o Herb Lewis <herb@samba.org>
1627 * Fix typo for tag in proto file.
1628 * Add missing #ifdef HAVE_BICONV stuff.
1629 * Truncate Samba's netbios name at the first '.' (not
1633 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
1634 * Bug fixes and enhancements to libsmbclient library.
1637 o Jianliang Lu <j.lu@tiesse.com>
1638 * Enforce the 'user must change password at next login' flag.
1639 * Decode meaning of 'fields present' flags (improves support
1642 * Don't force an upper case domain name in the ntlmssp code.
1645 o L. Lucius <ib@digicron.com>.
1649 o Jim McDonough <jmcd@us.ibm.com>
1650 * Add versioning support to tdbsam.
1651 * Update the IBM Directory Server schema with the OpenLDAP
1653 * Various decoding fixes to improve usrmgr.exe support.
1654 * Fix statfs redeclaration of statfs struct on ppc
1655 * Implement support for password lockout of Samba domain
1656 controllers and standalone servers.
1657 * Get MungedDial attribute actually working with full TS
1658 strings in it for pdb_ldap.
1659 * BUG 1208 (partial): Improvements for working with expired krb5
1660 tickets in winbindd.
1661 * Use timegm, or our already existing replacement instead of
1662 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
1663 * Remove modifyTimestamp from list of our attributes.
1664 * Fix lsalookupnames to check for domain users as well as local
1666 * Merge struct uuid replacement for GUID from trunk.
1667 * BUG 1208: Finish support for handling expired tickets in
1668 winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
1671 o Stefan Metzmacher <metze@samba.org>
1672 * Implement new VERSION schema based on subversion revision
1674 * Add shadow_copy vfs module.
1675 * Fix segault in login_cache support.
1678 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
1679 o BUG 979 -- Fix quota display on AIX.
1682 o James Peach <jpeach@sgi.com>
1683 * Correct check for printf() format when using the SGI MIPSPro
1685 * BUG 1038: support backtrace for 'panic action' on IRIX.
1686 * BUG 768: Accept profileing arg to IRIX init script.
1687 * BUG 748: Relax arg parsing to sambalp script (IRIX).
1688 * BUG 758: Fix pdma build.
1689 * Search IRIX ABI paths for libiconv. Based on initial fix from
1693 o Kurt Pfeifle <kpfeifle@danka.de>
1694 * Add example shell script for migrating drivers and printers
1695 from a Windows print server to a Samba print server using
1696 smbclient/rpcclient (examples/printing/VamireDriversFunctions).
1699 o Tim Potter <tpot@samba.org>
1700 * Fix logic bug in tdb non-blocking lock routines when
1702 * BUG 1025: Include sys/acl.h in check for broken nisplus
1704 * BUG 1066: s/printf/d_printf/g in SWAT.
1705 * BUG 1098: rename internal msleep() function to fix build
1707 * BUG 1112: Fix for writable printerdata problem in python bindings.
1708 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
1709 * BUG 1155: enclose use of fchown() with guards.
1710 * Relicense tdb python module as LGPL.
1713 o Richard Sharpe <rsharpe@samba.org>
1714 * Add support to smbclient for multiple logins on the same
1715 session (based on work by abartlet@samba.org).
1716 * Correct blocking condition in smbd's use of accept() on IRIX.
1717 * Add support for printing out the MAC address on nmblookup.
1720 o Simo Sorce <idra@samba.org>
1721 * Replace unknown_3 with fields_present in SAMR code.
1722 * More length checks in strlcat().
1725 o Andrew Tridgell <tridge@samba.org>
1726 * Rewrote the AIX UESS backend for winbindd.
1727 * Fixed compilation with --enable-dmalloc.
1728 * Change tdb license to LGPL (see source/tdb/tdb.c).
1729 * Force winbindd to use schannel in clients connections to
1733 o Jelmer Vernooij <jelmer@samba.org>
1734 * Fix ETA Calculation when resuming downloads in smbget.
1735 * Add -O (for writing downloaded files to standard out)
1736 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
1737 * Fix syntax error in example mysql table
1740 o TAKEDA yasuma <yasuma@miraclelinux.com>
1741 * BUG 900: fix token processing in cmd_symlink, cmd_link,
1742 cmd_chown, cmd_chmod smbclient functions.
1745 o Shiro Yamada <shiro@miraclelinux.com>
1746 * BUG 1129: install image files for SWAT.
1749 --------------------------------------------------
1751 ==============================
1752 Release Notes for Samba 3.0.2a
1754 ==============================
1756 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
1757 to address, in particular, a problem when using pdbedit to
1758 sanitize (--force-initialized-passwords) Samba's tdbsam
1759 backend. This is the latest stable release of Samba. This
1760 is the version that all production Samba servers should be
1761 running for all current bug-fixes.
1763 ******************* Attention! Achtung! Kree! *********************
1765 Beginning with Samba 3.0.2, passwords for accounts with a last
1766 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
1767 ldapsam, etc...) of zero (0) will be regarded as uninitialized
1768 strings. This will cause authentication to fail for such
1769 accounts. If you have valid passwords that meet this criteria,
1770 you must update the last change time to a non-zero value. If you
1771 do not, then 'pdbedit --force-initialized-passwords' will disable
1772 these accounts and reset the password hashes to a string of X's.
1774 ******************* Attention! Achtung! Kree! *********************
1783 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1784 details. The list of changes per contributor are as follows:
1787 o Jeremy Allison <jra@samba.org>
1788 * Added paranoia checks in parsing code.
1791 o Andrew Bartlett <abartlet@samba.org>
1792 * Ensure that changes to uninitialized passwords in ldapsam
1793 are written to the DIT.
1796 o Gerald (Jerry) Carter <jerry@samba.org>
1797 * Fixed iterator in tdbsam.
1798 * Fix bug that disabled accounts with a valid NT password
1799 hash, but no LanMan hash.
1802 o Steve French <sfrench@us.ibm.com>
1803 * Added missing nosetuid and noexec options.
1806 o Bostjan Golob <golob@gimb.org>
1807 * BUG 1046: Don't overwrite usernames of entries returned
1811 o Sebastian Krahmer <krahmer@suse.de>
1812 * Fixed potential crash bug in NTLMSSP parsing code.
1815 o Tim Potter <tpot@samba.org>
1816 * Fixed logic in tdb_brlock error checking.
1819 o Urban Widmark <urban@teststation.com>
1820 * Set nosuid,nodev flags in smbmnt by default.
1823 --------------------------------------------------
1825 =============================
1826 Release Notes for Samba 3.0.2
1828 =============================
1830 It has been confirmed that previous versions of Samba 3.0 are
1831 susceptible to a password initialization bug that could grant an
1832 attacker unauthorized access to a user account created by the
1833 mksmbpasswd.sh shell script.
1835 The Common Vulnerabilities and Exposures project (cve.mitre.org)
1836 has assigned the name CAN-2004-0082 to this issue.
1838 Samba administrators not wishing to upgrade to the current
1839 version should download the 3.0.2 release, build the pdbedit
1842 root# pdbedit-3.0.2 --force-initialized-passwords
1844 This will disable all accounts not possessing a valid password
1845 (e.g. the password field has been set a string of X's).
1847 Samba servers running 3.0.2 are not vulnerable to this bug
1848 regardless of whether or not pdbedit has been used to sanitize
1851 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
1854 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
1855 o Logging onto a Samba domain from Windows XP clients.
1856 o Problems with the %U and %u smb.conf variables in relation to
1857 Windows 9x/ME clients.
1858 o Kerberos failures due to an invalid in memory keytab detection
1860 o Updates to the ntlm_auth tool.
1861 o Fixes for various SMB signing errors.
1862 o Better separation of WINS and DNS queries for domain controllers.
1863 o Issues with nss_winbind FreeBSD and Solaris.
1864 o Several crash bugs in smbd and winbindd.
1865 o Output formatting fixes for smbclient for better compatibility
1866 with scripts based on the 2.2 version.
1875 Parameter Name Action
1876 -------------- ------
1877 ldap replication sleep New
1878 read size removed (unused)
1879 source environment removed (unused)
1885 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1886 details. The list of changes per contributor are as follows:
1888 o Jeremy Allison <jra@samba.org>
1889 * Revert change that broke Exchange clear text samlogons.
1890 * Fix gcc 3.4 warning in MS-DFS code.
1891 * Tidy up of NTLMSSP code.
1892 * Fixes for SMB signing errors
1893 * BUG 815: Workaround NT4 bug to support plaintext
1894 password logins and UNICODE.
1895 * Fix SMB signing bug when copying large files.
1896 * Correct error logic in mkdir_internals() (caused a panic
1897 when combined with --enable-developer).
1898 * BUG 830: Protect against crashes due to bad character
1902 o Petri Asikainen <paca@sci.fi>
1903 * BUG 330, 387:Fix single valued attribute updates when
1904 working with Novell NDS.
1907 o Andrew Bartlett <abartlet@samba.org>
1908 * Correctly handle per-pipe NTLMSSP inside a NULL session.
1909 * Fix segfault in gencache
1910 * Fix early free() of encrypted_session_key.
1911 * Change DC lookup routines to more carefully separate
1912 DNS names (realms) from NetBIOS domain names.
1913 * Add new sid_to_dn() function for internal winbindd use.
1914 * Refactor cli_ds_enum_domain_trusts().
1915 * BUG 707: Implement range retrieval of ADS attributes (based
1916 on work from Volker <vl@samba.org> and Guenther Deschner
1918 * Automatically initialize the signing engine if a session key
1920 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
1921 encoded strings, only form input in SWAT.
1922 * Resets the NTLMSSP state for new negotiate packets.
1923 * Add 2-byte alignments in net_samlogon() queries to parse
1924 odd-length plain text passwords.
1925 * Allow Windows groups with no members in winbindd.
1926 * Allow normal authentication in the absence of a server
1927 generated session key.
1928 * More optimizations for looking up UNIX group lists.
1929 * Clean up error codes and return values for pam_winbindd
1930 and winbindd PAM interface.
1931 * Fix string return values in ntlm_auth tool.
1932 * Fix segfault when 'security = ads' but no realm is defined.
1933 * BUG 722: Allow winbindd to map machine accounts to uids.
1934 * More cleanups for winbindd's find_our_domain().
1935 * More clearly detect whether a domain controller is an NT4
1936 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
1937 * Increase separation between DNS queries for hosts and queries
1938 for AD domain controllers.
1939 * Include additional NT_STATUS to PAM error mappings.
1940 * Password initialization fixes.
1943 o Justin Baugh <justin.baugh@request.com>
1944 * BUG 948: Implement missing functions required for FreeBSD
1945 nss_winbind support.
1948 o Alexander Bokovoy <ab@samba.org>
1949 * BUG 922: Make sure enable fast path for strlower_m() and
1953 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
1954 * Fix crash when using 'security = server' and 'encrypt
1955 passwords = no' by always initializing the session key.
1958 o Dmitry Butskoj <buc@odusz.elektra.ru>
1959 * Fix for special files being hidden from admins.
1962 o Gerald (Jerry) Carter <jerry@samba.org>
1963 * Fix bug in the lanman session key generation. Caused
1964 "decode_pw: incorrect password length" error messages.
1965 * Save the right case for the located user name in
1966 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
1967 * BUG 897: Add well known rid for pre win2k compatible access
1969 * BUG 887: Correct typo in delete user script example.
1970 * Use short lived TALLOC_CTX* for allocating printer objects
1971 from the print handle cache.
1972 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
1973 * Fix several warnings reported by the SUN Forte C compiler.
1974 * Fully control DNS queries for AD DC's using 'name resolve order'.
1975 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
1976 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
1977 * BUG 936: fix bind credentials for schannel binds in smbd.
1978 * BUG 446: Fix output of smbclient for better compatibility
1979 with scripts based on the 2.2 version (including Amanda).
1980 * BUG 891, 949: Fedora packaging fixes.
1981 * Fix bug that caused rpcclient to incorrectly retrieve
1982 the SID for a server (this causing all calls that required
1983 this information to fail).
1984 * BUG 977: Don't create a homes share for a user if a static
1985 share already exists by the same name.
1986 * Removed unused smb.conf options.
1987 * Password initialization fixes.
1988 * Set the disable flag for template accounts created by
1990 * Disable any account has no passwords and does not have the
1991 ACB_PWNOTREQ bit set.
1994 o Guenther Deschner <gd@suse.com>
1995 * Install smbwrapper.so should be put into the $(libdir)
1997 * Add the capability to specify the new user password
1998 for "net ads password" on the command line.
1999 * Correctly detect AFS headers on SuSE.
2002 o James Flemer <jflemer@uvm.edu>
2003 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
2004 HAVE_SYS_ATTRIBUTES_H.
2007 o Luke Howard <lukeh@PADL.COM>
2008 * Fix segfault in session setup reply caused by a early free().
2011 o Stoian Ivanov <sdr@bultra.com>
2012 * Implement grepable output for smbclient -L.
2015 o LaMont Jones <lamont@debian.org>
2016 * BUG 225328 (Debian): Correct false failure LFS test that resulted
2017 in _GNU_SOURCE not being defined (thus resulting in strndup()
2021 o Volker Lendecke <vl@samba.org>
2022 * BUG 583: Ensure that user names always contain the short
2023 version of the domain name.
2024 * Fix our parsing of the LDAP uri.
2025 * Don't show the 'afs username map' in the SWAT basic view.
2026 * Fix SMB signing issues in relation to failed NTLMSSP logins.
2027 * BUG 924: Fix return codes in smbtorture harness.
2028 * Always lower-case usernames before handing it to AFS code.
2029 * Add a German translation for SWAT.
2030 * Fix a segfaults in winbindd.
2031 * Fix the user's domain passed to register_vuid() from
2032 reply_spnego_kerberos().
2033 * Add NSS example code in nss_winbind to convert UNIX
2034 id's <-> Windows SIDs.
2035 * Display more descriptive error messages for login via 'net'.
2036 * Fix compiler warning in the net tool.
2037 * Fix length bug when decoding base64 strings.
2038 * Ensure we don't call getpwnam() inside a loop that is iterating
2039 over users with getpwent(). This broke on glibc 2.3.2.
2042 o Herb Lewis <herb@samba.org>
2043 * Fix bit rot in psec.
2046 o Jianliang Lu <j.lu@tiesse.com>
2047 * Ensure we delete the group mapping before calling the delete
2049 * Define well known RID for managing the "Power Users" group.
2050 * BUG 381: check builtin (not local) group SID when updating
2052 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
2056 o John Klinger <john.klinger@lmco.com>
2057 * Implement initgroups() call in nss_winbind on Solaris.
2060 o Jim McDonough <jmcd@us.ibm.com>
2061 * Fix regression in net rpc join caused by recent changes
2062 to cli_lsa_query_info_policy().
2063 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
2067 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
2068 * BUG 570: Ensure that configure honors the LDFLAGS variable.
2071 o Stefan Metzmacher <metze@samba.org>
2072 * Implement LDAP rebind sleep patch.
2073 * Revert to 2.2 quota code because of so many broken quota files
2075 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
2076 XFS_USER_QUOTA -> USRQUOTA
2077 XFS_GROUP_QUOTA -> GRPQUOTA
2078 * Fix disk_free calculation with group quotas.
2079 * Add debug class 'quota' and a lot of DEBUG()'s
2081 * Fix sys_chown() when no chown() is present.
2082 * Add SIGABRT to fault handling in order to catch got a
2083 backtrace if an error occurs the OpenLDAP client libs.
2087 * Allow an existing LDAP machine account to be re-used when
2088 joining an AD domain.
2091 o James Peach <jpeach@sgi.com>
2092 * BUG 889: Change smbd to use pread/pwrite on platforms that
2093 support these calls. Can lead to a significant speed increase.
2096 o Tim Potter <tpot@samba.org>
2097 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
2098 * BUG 924: Fix typo in RW2 torture test.
2101 o Richard Sharpe <rsharpe@samba.org>
2102 * Small fixes to torture.c to cleanup the error handling
2103 and prevent crashes.
2106 o J. Tournier <jerome.tournier@IDEALX.com>
2107 * Small fixes for the smbldap-tool scripts.
2110 o Andrew Tridgell <tridge@samba.org>
2111 * Fix src len check in pull_usc2().
2114 o Jelmer Vernooij <jelmer@samba.org>
2115 * Put functions for generating SQL queries in pdb_sql.c
2116 * Add pgSQL backend (based on patch by Hamish Friedlander)
2117 * BUG 908: Fix -s option to smbcontrol.
2118 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
2119 * Fix for libnss_wins on IRIX platforms.
2120 * Fix swatdir for --with-fhs.
2123 --------------------------------------------------
2125 =============================
2126 Release Notes for Samba 3.0.1
2128 =============================
2130 Some of the more common bugs in 3.0.0 addressed in the release
2133 o Substitution problems with smb.conf variables.
2134 o Errors in return codes which caused some applications
2135 to fail to open files.
2136 o General Protection Faults on Windows 2000/XP clients
2137 using Samba point-n-print features.
2138 o Several miscellaneous crash bugs.
2139 o Access problems when enumerating group mappings are
2140 stored in an LDAP Directory.
2141 o Several common SWAT bugs when writing changes to
2143 o Internal inconsistencies when 'winbind use default
2149 ----------------------
2151 Parameter Name Action
2152 -------------- ------
2153 hide local users Removed
2154 mangled map Deprecated
2155 mangled stack Removed
2156 passwd chat timeout New
2162 o Change the interface for init_unistr2 to not take a length
2163 but a flags field. We were assuming that
2164 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
2165 o Allow d_printf() to handle strings with escaped quotation
2166 marks since the msg file includes the escape character (bug 489).
2167 o Fix bad html table row termination in SWAT wizard code (bug 413).
2168 o Fix to parse the level-2 strings.
2169 o Fix for "valid users = %S" in [homes]. Fix read/write
2171 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
2172 This is the same way AC_CHECK_LIB works (bug 508).
2173 o Testparm output fixes for clarity.
2174 o Fix broken wins hook functionality -- i18n bug (bug 528).
2175 o Take care of condition where DOS and NT error codes must differ.
2176 o Default to using only built-in charsets when a working iconv
2177 implementation cannot be located.
2178 o Wrap internals of sys_setgroups() so the sys_XX() call can
2179 be done unconditionally (bug 550).
2180 o Remove duplicate smbspool link on SWAT's front page (bug 541).
2181 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
2182 --enable-debug=[yes|no] works correctly.
2183 o Allow ^C to interrupt smbpasswd if using our getpass
2184 (e.g. smbpasswd command).
2185 o Support signing only on RPC's (bug 167).
2186 o Correct bug that prevented Excel 2000 clients from opening
2187 files marked as read-only.
2188 o Portability fix bugs 546 - 549).
2189 o Explicitly initialize the value of AR for vendor makes that don't
2190 do this (e.g. HPUX 11). (bug 552).
2191 o More i18n fixes for SWAT (bug 413).
2192 o Change the cwd before the postexec script to ensure that a
2193 umount will succeed.
2194 o Correct double free that caused winbindd to crash when a DC
2195 is rebooted (bug 437).
2196 o Fix incorrect mode sum (bug 562).
2197 o Canonicalize SMB_INFO_ALLOCATION in the same was as
2198 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
2199 o Add script to generate *msg files.
2200 o Add Dutch SWAT translation file.
2201 o Make sure to call get_user_groups() with the full winbindd
2202 name for a user if he/she has one (bug 406).
2203 o Fix up error code returns from Samba4 tester. Ensure invalid
2204 paths are validated the same way.
2205 o Allow Samba3 to pass the Samba4 RAW-READ tests.
2206 o Refuse to configure if --with-expsam=$BACKEND was used but no
2207 libraries were found for $BACKEND.
2208 o Move sysquotas autoconf tests to a separate file.
2209 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
2211 o Make sure that the files that contain the static_init_$subsystem;
2212 macro get recompiled after configure by removing the object
2214 o Ensure canceling a blocking lock returns the correct error
2216 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
2217 o Updated Japanese welcome file in SWAT.
2218 o Fix to nt-time <-> unix-time functions reversible.
2219 o Ensure that winbindd uses the the escaped DN when querying
2221 o Fix portability issues when compiling (bug 505, 550)
2222 o Compile fix for tdbbackup when Samba needs to override
2223 non-C99 compliant implementations of snprintf().
2224 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
2225 o Make sure we break out of samsync loop on error.
2226 o Ensure error code path doesn't free unmalloc()'d memory
2228 o Add configure test for krb5_keytab_entry keyblock vs key
2231 o Modified testparm so that all output so all debug output goes
2232 to stderr, and all file processing goes to stdout.
2233 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
2235 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
2236 we have a devmode before copying a string to the devicename.
2237 o Support mapping REALM.COM\user to a local user account (without
2238 running winbindd) for compatibility with 2.2.x release.
2239 o Ensure we don't use mmap() on blacklisted systems.
2240 o fixed a number of bugs and memory leaks in the AIX
2242 o Call initgroups() in SWAT before becomming the user so that
2243 secondary group permissions can be used when writing to
2245 o Fix signing problems when reverse connecting back to a
2246 client for printer notify
2247 o Fix signing problems caused by a miss-sequence bug.
2248 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
2249 Fixes NEXUS tools running on Win9x clients (bug 64).
2250 o Don't leave the domain field uninitialized in cli_lsa.c if some
2251 SID could not be mapped.
2252 o Fix segfault in mount.cifs helper when there is no options
2253 specified during mount.
2254 o Change the \n after the password prompt to go to tty instead
2255 of stdout (bug 668).
2256 o Stop net -P from prompting for machine account password (bug 451).
2257 o Change in behavior to Not only change the effective uid but also
2258 the real uid when becoming unprivileged.
2259 o Cope with Exchange 5.5 cleartext pop password auth.
2260 o New files for support of initshutdown pipe. Win2k doesn't
2261 respond properly to all requests on the winreg pipe, so we need
2262 to handle this new pipe (bug 534).
2263 o Added more va_copy() checks in configure.in.
2264 o Include fixes for libsmbclient build problems.
2265 o Missing UNIX -> DOS codepage conversion in lanman.c.
2266 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
2267 o Parameterize the listen backlog in smbd and make it larger by
2268 default. A backlog of 5 is way too small these days.
2269 o Check for an invalid fid before dereferencing the fsp pointer
2271 o Remove invalid memory frees and return codes in pdb_ldap.c.
2272 o Prompt for password when invoking --set-auth-user and no
2274 o Bind the nmbd sending socket to the 'socket address'.
2275 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
2276 $LDFLAGS occurs before any library specification (bug 661).
2277 o Fix large number of printf() calls for 64-bit size_t.
2278 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
2279 keyblock in the krb5 structs.
2280 o Remove #include <compat.h> in hopes to avoid problems with
2281 apache header files.
2282 o Correct winbindd build problems on HP-UX 11.
2283 o Lowercase netgroups lookups (bug 703).
2284 o Use the actual size of the buffer in strftime instead of a made
2285 up value which just happens to be less than sizeof(fstring).
2287 o Add ldaplibs to pdbedit link line (bug 651).
2288 o Fix crash bug in smbclient completion (bug 659).
2289 o Fix packet length for browse list reply (bug 771).
2290 o Fix coredump in cli_get_backup_list().
2291 o Make sure that we expand %N (bug 612).
2292 o Allow rpcclient adddriver command to specify printer driver
2294 o Compile tdbdump by default.
2295 o Apply patches to fix iconv detection for FreeBSD.
2296 o Do not allow the 'guest account' to be added to a passdb backend
2297 using smbpasswd or pdbedit (bug 624).
2298 o Save LDFLAGS during iconv detection (bug 57).
2299 o Run krb5 logins through the username map if the winbindd
2300 lookup fails (bug 698).
2301 o Add const for lp_set_name_resolve_order() to avoid compiler
2303 o Add support for the %i macro in smb.conf to stand in for the for
2304 the local IP address to which a client connected.
2305 o Allow winbindd to match local accounts to domain SID when
2306 'winbind trusted domains only = yes' (bug 680).
2307 o Remove code in idmap_ldap that searches the user suffix and group
2308 suffix. It's not needed and provides inconsistent functionality
2309 from the tdb backend.
2310 o Patch to handle munged dial string for Windows 2000 TSE.
2311 Thanks to Gaz de France, Direction de la Recherche, Service
2312 Informatique Métier for their supporting this work by Aurelien
2313 Degrémont <adegremont@idealx.com>.
2314 o Correct the "smbldap_open: cannot access when not root error"
2315 messages when looking up group information (bug 281).
2316 o Skip over the winbind separator when looking up a user.
2317 This fixes the bug that prevented local users from
2318 matching an AD user when not running winbindd (bug 698).
2319 o Fix a problem with configure on *BSD systems. Make sure
2320 we add -liconv etc to LDFLAGS.
2321 o Fix core dump bug when "security = server" and the authentication
2323 o Correct crash bug due to an empty munged dial string.
2324 o Show files locked by a specific user (smbstatus -u 'user')
2326 o Fix bug preventing print jobs from display in the queue
2327 monitor used by Windows NT and later clients (bug 660).
2328 o Fix several reported problems with point-n-print from
2329 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
2330 reply (bug 338, 527 & 643).
2331 o Fix a handful of potential memory leaks in the LDAP code used
2332 by ldapsam[_compat] and the LDAP idmap backend.
2333 o Fix for pdbedit error code returns (bug 763).
2334 o Make sure we only enumerate group mapping entries (not
2335 /etc/group) even when doing local aliases.
2336 o Relax check on the pipe name in a dce/rpc bind response to work
2337 around issues with establishing trusts to a Windows 2003 domain.
2338 o Ensure we mangle names ending in '.' in hash2 mangling method.
2339 o Correct parsing issues with munged dial string.
2340 o Fix bugs in quota support for XFS.
2341 o Add a cleaner method for applications that need to provide
2342 name->SID mappings to do this via NSS rather than having to
2343 know the winbindd pipe protocol.
2344 o Adds a variant of the winbindd_getgroups() call called
2345 winbindd_getusersids() that provides direct SID->SIDs listing of
2346 a users supplementary groups. This is enough to allow non-Samba
2347 applications to do ACL checking.
2348 o Make sure we don't append the 'ldap suffix' when writing out the
2349 'ldap XXX suffix' values in SWAT (bug 328).
2350 o Fix renames across file systems.
2351 o Ensure that items in a list of strings containing whitespace are
2352 written out surrounded by single quotes. This means that both
2353 double and single quotes are now used to surround strings in
2355 o Enable SWAT to correctly determine if winbindd is running (bug
2357 o Include WWW-Authenticate field in 401 response for bad auth
2359 o Add support for NTLM2 (NTLMv2 session security).
2360 o Add support for variable-length session keys.
2361 o More privilege fixes for group enumeration in LDAP (bug 281).
2362 o Use the dns name (or IP) as the originating client name when
2363 using CUPS (bug 467).
2364 o Fix various SMB signing bugs.
2365 o Fix ACL propagation on a DFS root (bug 263).
2366 o Disable NTLM2 for RPC pipes.
2367 o Allow the client to specify the NTLM2 flags got NTLMSSP
2369 o Change the name of the job passed off to cups from "Test Page"
2370 to "smbprn.00000033 Test Page" so that we can get the smb
2371 jobid back. This allow users to delete jobs with cups printing
2372 backend (partial work on bug 770).
2373 o Fix build of winbindd with static pdb modules.
2374 o Retrieve the correct ACL group bits if the file has an ACL
2376 o Implement "net rpc group members": Get members of a domain group
2377 in human-readable format.
2378 o Add MacOSX (Darwin) specific charset module code.
2379 o Use samr_dispinfo(level == 1) for enumerating domain users so we
2380 can include the full name in gecos field (bug 587).
2381 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
2382 o Implement 'net rpc group list [global|local|builtin]*' for a
2383 select listing of the respective user databases.
2384 o Don't automatically set NT status code flag unless client tells
2386 o Add 'net status [sessions|shares] [parseable]'.
2387 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
2389 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
2391 o Fix inverted logic in hosts allow/deny checks caused by
2392 s/strcmp/strequal/ (bug 846).
2393 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
2394 o Fix typo in 'hash' mangling algorithm.
2395 o Support munged dial for ldapsam (bug 800).
2396 o Fix process_incoming_data() to return the number of bytes handled
2397 this call whether we have a complete PDU or not; fixes bug
2398 with multiple PDU request rpc's broken over SMBwriteX calls
2400 o Fix incorrect smb flags2 for connections to pre-NT servers
2401 (causes smbclient to fail to OS2 for example) (bug 821).
2402 o Update version string in smbldap-tools Makefile to 0.8.2.
2403 o Correct a problem with "net rpc vampire" mis-parsing the
2404 alias member info reply.
2405 o Ensure the ${libdir} is created by the installclientlib script.
2406 o Fix detection of Windows 2003 client architecture in the smb.conf
2408 o Ensure that smbd calls the add user script for a missing UNIX
2409 user on kerberos auth call (bug 445).
2410 o Fix bugs in hosts allow/deny when using a mismatched
2411 network/netmask pair.
2412 o Protect alloc_sub_basic() from crashing when the source string
2413 is NULL (partial work on bug 687).
2414 o Fix spinlocks on IRIX.
2415 o Corrected some bad destination paths when running "configure
2417 o Add packaging files for Fedora Core 1.
2418 o Correct bug in SWAT install script for non-english languages.
2419 o Support character set ISO-8859-1 internally (bug 558).
2420 o Fixed more LDAP access errors when looking up group mappings
2422 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
2423 resolution to fail on local files on on domain members
2425 o Fix uninitialized variable in passdb.c.
2426 o Fix formal parameter type in get_static() in nsswitch/wins.c.
2427 o Fix problem mounting directories when mount.cifs is installed
2428 with the setuid bit on.
2429 o Fix bug that prevent --mandir from overriding the defaults
2430 given in the --with-fhs macro.
2431 o Fix bug in in-memory Kerberos keytab detection routines
2436 ######################################################################
2438 The original 3.0.0 release notes follow
2439 =======================================
2440 WHATS NEW IN Samba 3.0.0
2442 =======================================
2448 1) Active Directory support. Samba 3.0 is now able to
2449 join a ADS realm as a member server and authenticate
2450 users using LDAP/Kerberos.
2452 2) Unicode support. Samba will now negotiate UNICODE on the wire
2453 and internally there is now a much better infrastructure for
2454 multi-byte and UNICODE character sets.
2456 3) New authentication system. The internal authentication system
2457 has been almost completely rewritten. Most of the changes are
2458 internal, but the new auth system is also very configurable.
2460 4) New default filename mangling system.
2462 5) A new "net" command has been added. It is somewhat similar to
2463 the "net" command in windows. Eventually we plan to replace
2464 numerous other utilities (such as smbpasswd) with subcommands
2467 6) Samba now negotiates NT-style status32 codes on the wire. This
2468 improves error handling a lot.
2470 7) Better Windows 2000/XP/2003 printing support including publishing
2471 printer attributes in active directory.
2473 8) New loadable module support for passdb backends and character
2476 9) New default dual-daemon winbindd support for better performance.
2478 10) Support for migrating from a Windows NT 4.0 domain to a Samba
2479 domain and maintaining user, group and domain SIDs.
2481 11) Support for establishing trust relationships with Windows NT 4.0
2484 12) Initial support for a distributed Winbind architecture using
2485 an LDAP directory for storing SID to uid/gid mappings.
2487 13) Major updates to the Samba documentation tree.
2489 14) Full support for client and server SMB signing to ensure
2490 compatibility with default Windows 2003 security settings.
2492 15) Improvement of ACL mapping features based on code donated by
2496 Plus lots of other improvements!
2499 Additional Documentation
2500 ------------------------
2502 Please refer to Samba documentation tree (included in the docs/
2503 subdirectory) for extensive explanations of installing, configuring
2504 and maintaining Samba 3.0 servers and clients. It is advised to
2505 begin with the Samba-HOWTO-Collection for overviews and specific
2506 tasks (the current book is up to approximately 400 pages) and to
2507 refer to the various man pages for information on individual options.
2509 We are very glad to be able to include the second edition of
2510 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
2511 (O'Reilly & Associates) in this release. The book is available
2512 on-line at http://samba.org/samba/docs/ and is included with
2513 the Samba Web Administration Tool (SWAT). Thanks to the authors and
2514 publisher for making "Using Samba" under the GNU Free Documentation
2518 ######################################################################
2519 Upgrading from a previous Samba 3.0 beta
2520 ########################################
2522 Beginning with Samba 3.0.0beta3, the RID allocation functions
2523 have been moved into winbindd. Previously these were handled
2524 by each passdb backend. This means that winbindd must be running
2525 to automatically allocate RIDs for users and/or groups. Otherwise,
2526 smbd will use the 2.2 algorithm for generating new RIDs.
2528 If you are using 'passdb backend = tdbsam' with a previous Samba
2529 3.0 beta release (or possibly alpha), it may be necessary to
2530 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
2531 to winbindd_idmap.tdb. To do this:
2533 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
2535 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
2537 3) run: (note that 'tdb>' is the tool's prompt for input)
2539 root# ./tdbtool /usr/local/samba/private/passdb.tdb
2540 tdb> show RID_COUNTER
2544 [000] 0A 52 00 00 .R.
2546 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
2550 If you are using 'passdb backend = ldapsam', it will be necessary to
2551 store idmap entries in the LDAP directory as well (i.e. idmap backend
2552 = ldap). Refer to the 'net idmap' command for more information on
2553 migrating SID<->UNIX id mappings from one backend to another.
2555 If the RID_COUNTER record does not exist, then these instructions are
2556 unneccessary and the new RID_COUNTER record will be correctly generated
2561 ########################
2562 Upgrading from Samba 2.2
2563 ########################
2565 This section is provided to help administrators understand the details
2566 involved with upgrading a Samba 2.2 server to Samba 3.0.
2572 Many of the options to the GNU autoconf script have been modified
2573 in the 3.0 release. The most noticeable are:
2575 * removal of --with-tdbsam (is now included by default; see section
2576 on passdb backends and authentication for more details)
2578 * --with-ldapsam is now on used to provided backward compatible
2579 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
2580 backend and authentication section for more details
2582 * inclusion of non-standard passdb modules may be enabled using
2583 --with-expsam. This includes an XML backend and a mysql backend.
2585 * removal of --with-msdfs (is now enabled by default)
2587 * removal of --with-ssl (no longer supported)
2589 * --with-utmp now defaults to 'yes' on supported systems
2591 * --with-sendfile-support is now enabled by default on supported
2598 This section contains a brief listing of changes to smb.conf options
2599 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
2600 complete descriptions of new or modified parameters.
2602 Removed Parameters (order alphabetically):
2605 * alternate permissions
2608 * code page directory
2610 * domain admin group
2611 * domain guest group
2612 * force unknown acl user
2618 * printer driver file
2619 * printer driver location
2621 * source environment
2629 New Parameters (new parameters have been grouped by function):
2633 * abort shutdown script
2636 User and Group Account Management
2637 ---------------------------------
2639 * add machine script
2640 * add user to group script
2641 * algorithmic rid base
2642 * delete group script
2643 * delete user from group script
2645 * set primary group script
2651 * passwd chat timeout
2655 * client lanman auth
2656 * client NTLMv2 auth
2662 * paranoid server security
2671 * hide special files
2672 * hide unwriteable files
2674 * kernel change notify
2684 * max reported print jobs
2686 UNICODE and Character Sets
2687 --------------------------
2693 SID to uid/gid Mappings
2694 -----------------------
2698 * winbind enable local accounts
2699 * winbind trusted domains only
2700 * template primary group
2701 * enable rid algorithm
2708 * ldap machine suffix
2710 * ldap replication sleep
2713 General Configuration
2714 ---------------------
2718 Modified Parameters (changes in behavior):
2720 * encrypt passwords (enabled by default)
2721 * mangling method (set to 'hash2' by default)
2724 * restrict anonymous (integer value)
2725 * security (new 'ads' value)
2726 * strict locking (enabled by default)
2727 * unix extensions (enabled by default)
2728 * winbind cache time (increased to 5 minutes)
2729 * winbind uid (deprecated in favor of 'idmap uid')
2730 * winbind gid (deprecated in favor of 'idmap gid')
2736 This section contains brief descriptions of any new databases
2737 introduced in Samba 3.0. Please remember to backup your existing
2738 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
2739 upgrade databases as they are opened (if necessary), but downgrading
2740 from 3.0 to 2.2 is an unsupported path.
2742 Name Description Backup?
2743 ---- ----------- -------
2744 account_policy User policy settings yes
2745 gencache Generic caching db no
2746 group_mapping Mapping table from Windows yes
2747 groups/SID to unix groups
2748 winbindd_idmap ID map table from SIDS to UNIX yes
2750 namecache Name resolution cache entries no
2751 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
2752 returned as part of a successful
2753 net_sam_logon request
2754 printing/*.tdb Cached output from 'lpq no
2755 command' created on a per print
2757 registry Read-only samba registry skeleton no
2758 that provides support for exporting
2759 various db tables via the winreg RPCs
2765 The following issues are known changes in behavior between Samba 2.2 and
2766 Samba 3.0 that may affect certain installations of Samba.
2768 1) When operating as a member of a Windows domain, Samba 2.2 would
2769 map any users authenticated by the remote DC to the 'guest account'
2770 if a uid could not be obtained via the getpwnam() call. Samba 3.0
2771 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
2772 current work around to re-establish the 2.2 behavior.
2774 2) When adding machines to a Samba 2.2 controlled domain, the
2775 'add user script' was used to create the UNIX identity of the
2776 machine trust account. Samba 3.0 introduces a new 'add machine
2777 script' that must be specified for this purpose. Samba 3.0 will
2778 not fall back to using the 'add user script' in the absence of
2779 an 'add machine script'
2782 ######################################################################
2783 Passdb Backends and Authentication
2784 ##################################
2786 There have been a few new changes that Samba administrators should be
2787 aware of when moving to Samba 3.0.
2789 1) encrypted passwords have been enabled by default in order to
2790 inter-operate better with out-of-the-box Windows client
2791 installations. This does mean that either (a) a samba account
2792 must be created for each user, or (b) 'encrypt passwords = no'
2793 must be explicitly defined in smb.conf.
2795 2) Inclusion of new 'security = ads' option for integration
2796 with an Active Directory domain using the native Windows
2797 Kerberos 5 and LDAP protocols.
2799 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
2800 type which is neccessary for servers on which the
2801 administrator password has not been changed, or kerberos-enabled
2802 SMB connections to servers that require Kerberos SMB signing.
2803 Besides this one difference, either MIT or Heimdal Kerberos
2804 distributions are usable by Samba 3.0.
2807 Samba 3.0 also includes the possibility of setting up chains
2808 of authentication methods (auth methods) and account storage
2809 backends (passdb backend). Please refer to the smb.conf(5)
2810 man page for details. While both parameters assume sane default
2811 values, it is likely that you will need to understand what the
2812 values actually mean in order to ensure Samba operates correctly.
2814 The recommended passdb backends at this time are
2816 * smbpasswd - 2.2 compatible flat file format
2817 * tdbsam - attribute rich database intended as an smbpasswd
2818 replacement for stand alone servers
2819 * ldapsam - attribute rich account storage and retrieval
2820 backend utilizing an LDAP directory.
2821 * ldapsam_compat - a 2.2 backward compatible LDAP account
2824 Certain functions of the smbpasswd(8) tool have been split between the
2825 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
2826 utility. See the respective man pages for details.
2829 ######################################################################
2833 This section outlines the new features affecting Samba / LDAP
2839 A new object class (sambaSamAccount) has been introduced to replace
2840 the old sambaAccount. This change aids us in the renaming of
2841 attributes to prevent clashes with attributes from other vendors.
2842 There is a conversion script (examples/LDAP/convertSambaAccount) to
2843 modify and LDIF file to the new schema.
2847 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
2848 $ convertSambaAccount --sid=<Domain SID> \
2849 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
2850 --changetype=[modify|add]
2852 The <DOM SID> can be obtained by running 'net getlocalsid
2853 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
2854 the format of the generated LDIF output--either create new entries
2855 or modify existing entries.
2857 The old sambaAccount schema may still be used by specifying the
2858 "ldapsam_compat" passdb backend. However, the sambaAccount and
2859 associated attributes have been moved to the historical section of
2860 the schema file and must be uncommented before use if needed.
2861 The 2.2 object class declaration for a sambaAccount has not changed
2862 in the 3.0 samba.schema file.
2864 Other new object classes and their uses include:
2866 * sambaDomain - domain information used to allocate rids
2867 for users and groups as necessary. The attributes are added
2868 in 'ldap suffix' directory entry automatically if
2869 an idmap uid/gid range has been set and the 'ldapsam'
2870 passdb backend has been selected.
2872 * sambaGroupMapping - an object representing the
2873 relationship between a posixGroup and a Windows
2874 group/SID. These entries are stored in the 'ldap
2875 group suffix' and managed by the 'net groupmap' command.
2877 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
2878 automatically and contains the next available 'idmap uid' and
2881 * sambaIdmapEntry - object storing a mapping between a
2882 SID and a UNIX uid/gid. These objects are created by the
2883 idmap_ldap module as needed.
2885 * sambaSidEntry - object representing a SID alone, as a Structural
2886 class on which to build the sambaIdmapEntry.
2889 New Suffix for Searching
2890 ------------------------
2892 The following new smb.conf parameters have been added to aid in directing
2893 certain LDAP queries when 'passdb backend = ldapsam://...' has been
2896 * ldap suffix - used to search for user and computer accounts
2897 * ldap user suffix - used to store user accounts
2898 * ldap machine suffix - used to store machine trust accounts
2899 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
2900 * ldap idmap suffix - location of sambaIdmapEntry objects
2902 If an 'ldap suffix' is defined, it will be appended to all of the
2903 remaining sub-suffix parameters. In this case, the order of the suffix
2904 listings in smb.conf is important. Always place the 'ldap suffix' first
2907 Due to a limitation in Samba's smb.conf parsing, you should not surround
2908 the DN's with quotation marks.
2914 Samba 3.0 supports an ldap backend for the idmap subsystem. The
2915 following options would inform Samba that the idmap table should be
2916 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
2921 idmap backend = ldap:ldap://onterose/
2922 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
2923 idmap uid = 40000-50000
2924 idmap gid = 40000-50000
2926 This configuration allows winbind installations on multiple servers to
2927 share a uid/gid number space, thus avoiding the interoperability problems
2928 with NFS that were present in Samba 2.2.
2932 ######################################################################
2933 Trust Relationships and a Samba Domain
2934 ######################################
2936 Samba 3.0.0beta2 is able to utilize winbindd as the means of
2937 allocating uids and gids to trusted users and groups. More
2938 information regarding Samba's support for establishing trust
2939 relationships can be found in the Samba-HOWTO-Collection included
2940 in the docs/ directory of this release.
2942 First create your Samba PDC and ensure that everything is
2943 working correctly before moving on the trusts.
2945 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
2946 4.0 domain named WINDOWS:
2948 1) create the trust account for SAMBA in "User Manager for Domains"
2949 2) connect the trust from the Samba domain using
2950 'net rpc trustdom establish GLASS'
2952 To create a trustlationship with SAMBA as the trusted domain:
2954 1) create the initial trust account for GLASS using
2955 'smbpasswd -a -i GLASS'. You may need to create a UNIX
2956 account for GLASS$ prior to this step (depending on your
2957 local configuration).
2958 2) connect the trust from a WINDOWS DC using "User Manager
2961 Now join winbindd on the Samba PDC to the SAMBA domain using
2962 the normal steps for adding a Samba server to an NT4 domain:
2963 (note that smbd & nmbd must be running at this point)
2965 root# net rpc join -U root
2966 Password: <enter root password from smbpasswd file here>
2968 Start winbindd and test the join with 'wbinfo -t'.
2970 Now test the trust relationship by connecting to the SAMBA DC
2971 (e.g. POGO) as a user from the WINDOWS domain:
2973 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
2976 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
2978 $ smbclient //crystal/netlogon -U root -W WINDOWS
2981 ######################################################################
2985 Beginning with Samba3.0.0beta3, winbindd has been given new account
2986 manage functionality equivalent to the 'add user script' family of
2987 smb.conf parameters. The idmap design has also been changed to
2988 centralize control of foreign SID lookups and matching to UNIX
2992 Brief Description of Changes
2993 ----------------------------
2995 1) The sid_to_uid() family of functions (smbd/uid.c) have been
2996 reverted to the 2.2.x design. This means that when resolving a
2997 SID to a UID or similar mapping:
2999 a) First consult winbindd
3000 b) perform a local lookup only if winbindd fails to
3001 return a successful answer
3003 There are some variations to this, but these two rules generally
3006 2) All idmap lookups have been moved into winbindd. This means that
3007 a server must run winbindd (and support NSS) in order to achieve
3008 any mappings of SID to dynamically allocated UNIX ids. This was
3009 a conscious design choice.
3011 3) New functions have been added to winbindd to emulate the 'add user
3012 script' family of smbd functions without requiring that external
3013 scripts be defined. This functionality is controlled by the 'winbind
3014 enable local accounts' smb.conf parameter (enabled by default).
3016 However, this account management functionality is only supported
3017 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
3018 must be shared among multiple Samba servers (such as a PDC and BDCs),
3019 it will be necessary to define your own 'add user script', et. al.
3020 programs that place the accounts/groups in some form of directory
3021 such as NIS or LDAP. This requirement was deemed beyond the scope
3022 of winbind's account management functions. Solutions for
3023 distributing UNIX system information have been deployed and tested
3024 for many years. We saw no need to reinvent the wheel.
3026 4) A member of a Samba controlled domain running winbindd is now able
3027 to map domain users directly onto existing UNIX accounts while still
3028 automatically creating accounts for trusted users and groups. This
3029 behavior is controlled by the 'winbind trusted domains only' smb.conf
3030 parameter (disabled by default to provide 2.2.x winbind behavior).
3032 5) Group mapping support is wrapped in the local_XX_to_XX() functions
3033 in smbd/uid.c. The reason that group mappings are not included
3034 in winbindd is because the purpose of Samba's group map is to
3035 match any Windows SID with an existing UNIX group. These UNIX
3036 groups can be created by winbindd (see next section), but the
3037 SID<->gid mapping is retreived by smbd, not winbindd.
3043 * security = server running winbindd to allocate accounts on demand
3045 * Samba PDC running winbindd to handle the automatic creation of UNIX
3046 identities for machine trust accounts
3048 * Automtically creating UNIX user and groups when migrating a Windows NT
3049 4.0 PDC to a Samba PDC. Winbindd must be running when executing
3050 'net rpc vampire' for this to work.
3053 ######################################################################
3057 * There are several bugs currently logged against the 3.0 codebase
3058 that affect the use of NT 4.0 GUI domain management tools when run
3059 against a Samba 3.0 PDC. This bugs should be released in an early
3062 Please refer to https://bugzilla.samba.org/ for a current list of bugs
3063 filed against the Samba 3.0 codebase.
3066 ######################################################################
3067 Reporting bugs & Development Discussion
3068 #######################################
3070 Please discuss this release on the samba-technical mailing list or by
3071 joining the #samba-technical IRC channel on irc.freenode.net.
3073 If you do report problems then please try to send high quality
3074 feedback. If you don't provide vital information to help us track down
3075 the problem then you will probably be ignored.
3077 A new bugzilla installation has been established to help support the
3078 Samba 3.0 community of users. This server, located at
3079 https://bugzilla.samba.org/, has replaced the older jitterbug server
3080 previously located at http://bugs.samba.org/.