1 =================================
2 Release Notes for Samba 3.0.11rc1
4 ==================================
6 This is a release candidate of the Samba 3.0.11 code base and is
7 provided for testing only. While close to the final stable release,
8 this snapshot is *not* intended for production servers. If all
9 goes well, this this version will become the final 3.0.11 stable
10 release (with possible minor changes).
12 Common bugs fixed in 3.0.11rc1 include:
14 o Crash in smbd when using CUPS printing.
15 o Parsing error of other SIDs included in the user_info_3
16 structure returned from domain controllers.
19 ######################################################################
23 Changes since 3.0.11pre2
24 ------------------------
31 winbind enable local accounts Deprecated
36 o Jeremy Allison <jra@samba.org>
37 * BUG 2092: Prevent auto-anonymous logins via libsmbclient
38 for better use by desktop environments such as GNOME.
39 * Ensure we can't remove a level II oplock without having the
40 shared memory area locked.
43 o Gerald (Jerry) Carter <jerry@samba.org>
44 * RedHat and Fedora Packaging fixes for perl dependencies.
45 * Remove unused schema items from OpenLDAP schema file.
46 * Remove duplicate enumeration of "Windows x86" architecture
47 when listing printer drivers via rpcclient.
48 * Fail set_privileges() if 'enable privileges = no' to prevent
50 * Fix segfault in cups_queue_get().
51 * Tighten restrictions on changing user passwords when
52 the connected user possesses the SeMachineAccountPrivilege.
53 * Ensure we set NETBIOSNAME.domainname for the long machine name
54 when publishing printers in AD (based on input from Rob Foehl).
55 * Mark 'winbind enable local accounts' as deprecated.
56 * Mark testprns tool as deprecated.
57 * Allow root to grant/revoke privilege assignments.
58 * Correct interaction between user rights and se_access_check() on
60 * BUG 2286: Fix typo OpenLDAP schema file for sambaConfig object
64 o Guenther Deschner <gd@samba.org>
65 * Fix configure.in tests using KRB5_CONFIG variable and krb5-
67 * Require assignment of Administrator SID in the passdb
68 backend. Fall back to the default name of 'Administrator' if
69 the lookup fails rather than using the first name in the
70 default 'admin users' list.
71 * Enhance LDAP failure debug messages.
74 o Volker Lendecke <vl@samba.org>
75 * Allow 'rpcclient -c enumtrust' to enumerate more than 10 trusts.
76 * Fix parsing of other_sids in net_user_info3.
77 * Correct bad failure logic when user was not a member of any
81 Changes for older versions follow below:
83 --------------------------------------------------
85 ==================================
86 Release Notes for Samba 3.0.11pre2
88 ===================================
90 This is a preview release of the Samba 3.0.11 code base and
91 is provided for testing only. This release is *not* intended
92 for production servers. However, there have been several bug
93 fixes since 3.0.10 that we feel are important to make available
94 to the Samba community for wider testing.
96 Common bugs fixed in 3.0.11pre2 include:
98 o Inefficiencies when searching non-AD LDAP directories.
99 o Failure to expand variables in user domain attributes
100 in tdbsam and ldapsam.
102 o Failure to retrieve certain attribute when migrating from
103 a Windows DC to a Samba DC via 'net rpc vampire'.
105 Additional features introduced in Samba 3.0.11pre1:
107 o Support for the Windows privilege model to assign rights
109 o New administrative options to the 'net rpc' command.
115 If "ldap user suffix" or "ldap machine suffix" are defined in
116 smb.conf, all user-accounts must reside below the user suffix,
117 and all machine and inter-domain trust-accounts must be located
118 below the machine suffix. Previous Samba releases would fall
119 back to searching the 'ldap suffix' in some cases.
125 Samba 3.0.11pre2 supports the following assignable rights
127 SeMachineAccountPrivilege Add machines to domain
128 SePrintOperatorPrivilege Manage printers
129 SeAddUsersPrivilege Add users and groups to the domain
130 SeRemoteShutdownPrivilege Force shutdown from a remote system
131 SeDiskOperatorPrivilege Manage disk shares
133 These rights can be assigned to arbitrary users or groups
134 via the 'net rpc rights grant/revoke' command. More details
135 of Samba's privilege implementation can be found in the
136 Samba-HOWTO-Collection.
139 ######################################################################
143 Changes since 3.0.11pre1
144 ------------------------
148 Parameter Name Action
149 -------------- ------
150 enable privileges New
151 ldap password sync Alias
156 o Jeremy Allison <jra@samba.org>
157 * Fixes for libsmbclient to ensure that interrupted system calls
158 are restarted minus the already expired portion of the timeout
159 (based on work by Derrell Lipman).
160 * More Unicode string parsing fixes.
161 * Convert the winreg pipe to use WERROR returns.
162 * Make all LDAP timeouts consistent (input from Joe Meadows
163 <jameadows@webopolis.com>).
164 * BUG 2231: Remove double "\\" from client findfirst.
165 * BUG 2238: Fix memory leak in shadow copy vfs.
166 * Return correct DOS/NT error code on transact named pipe on
168 * BUG 2211: Fix security descriptor parsing bug (based on work by
169 Mrinal Kalakrishnan <mail@mrinal.net>).
170 * BUG 2270: Fix memory leaks in cups printing backend support
171 (based on work by Lars Mueller).
172 * BUG 2255: Fix debug level in kerberos error messages.
175 o Andrew Bartlett <abartlet@samba.org>
176 * Don't store the auth-user credentials with the cli_state* as
177 this can cause the schannel setup to fail when the auth-user
178 domain is not our primary domain.
181 o Grigory Batalov <bga@altlinux.org>
182 * Fix encoding while receiving of a message which was actually
183 sent using STR_ASCII.
186 o Daniel Beschorner <db@unit-netz.de>
187 * BUG 603: Correct access mask check for _samr_lookup_domain()
188 to work with Windows RAS server
191 o Jerome Borsboom <j.borsboom@erasmusmc.nl>
192 * Fix missing printer_tdb reference decrement.
195 o Gerald (Jerry) Carter <jerry@samba.org>
196 * Re-instantiate previous semantics for calling init_unistr2()
197 with a NULL source buffer.
198 * Support Windows privilege model for assigning rights
199 to specific SIDs. Based on work by Simo Sorce in the trunk
200 svn branch. This feature is controlled by the 'enable
201 privileges = [yes|no]' smb.conf(5) option.
202 * Add some smb.conf scripts for add/delete/change shares and
203 deleting cups printers.
204 * Expand variables in the profile path, logon home and logon script
205 values when using either tdbsam or ldapsam.
206 * Add Domain Admins (Full Control) to the default printer security
207 descriptor if we are a DC.
210 o Guenther Deschner <gd@samba.org>
211 * Allow rpcclient to define a port to use when connecting
213 * Allow Account Lockout with Lockout Duration "forever" (until
214 admin unlocks) to be set and displayed in User Manager.
215 * Allow to set acb_mask in rpcclient's enumdomusers.
216 * Add more generic rootDSE inspection function to check
217 for given controls or extensions and remember these on a
219 * Improve LDAP search efficiency by passing the acb_mask to
221 * Fixes for ldapsam_enum_group_memberships().
222 * Add createdomgroup to rpcclient.
223 * Add "net rpc user RENAME"-command.
224 * Display sam_user_info_7 in rpcclient.
225 * Make multi-domain-mode in idmap_rid accessible from outside
226 (can be compiled with -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS).
227 * When vampiring account policy AP_LOCK_ACCOUNT_DURATION honor
228 "Lockout Duration: Forever".
231 o Rob Foehl <rwf@loonybin.net>
232 * Implement caching of names from printcap to support a true
233 'printcap cache time'.
236 o Jeff Hardy <hardyjm@potsdam.edu>
237 * Example script for 'add print command' when using CUPS.
240 o William Jojo <jojowil@hvcc.edu>
241 * AIX 5.3 compile fixes.
244 o Volker Lendecke <vl@samba.org>
245 * Initial work to allow support for multiple pipe opens on a
247 * Ensure that we still retrieve the netbios name of any DC
248 listed as a 'password server' to work around cases where the
249 DC was defined using an IP address or fqdn.
250 * Fix memleak in winbindd connection code.
251 * Fix cli_samr_queryuseraliases.
252 * Allow wbinfo --user-sids to expand expand domain local groups.
255 o Jim McDonough <jmcd@us.ibm.com>
256 * BUG 2198: Set password last change time when running 'net rpc
258 * Add "refuse machine password change" policy field.
261 o Stefan Metzmacher <metze@samba.org>
265 o James Peach <jpeach@sgi.com>
266 * Fix rewinddir -> rewind_dir when using VFS macros.
269 o Simo Sorce <idra@samba.org>
270 * Allows the add/change share command to create the shared
271 directory directory on disk.
273 o Jelmer Vernooij <jelmer@samba.org>
274 * Fixes for pdb_mysql.
277 --------------------------------------------------
279 ==================================
280 Release Notes for Samba 3.0.11pre1
282 ===================================
284 Common bugs fixed in 3.0.11pre1 include:
286 o Numerous printing bugs bugs including memory
287 bloating on large/busy print servers.
288 o Compatibility issues with Exchange 5.5 SP4.
291 Additional features introduced in Samba 3.0.11pre1:
293 o Winbindd performance improvements.
294 o More 'net rpc vampire' functionality.
299 ######################################################################
308 Parameter Name Action
309 -------------- ------
310 afs token lifetime New
311 min password length Deprecated
317 o Jeremy Allison <jra@samba.org>
318 * Extend vfs to add seekdir/telldir/rewinddir.
320 * Fix bugs when handling secondary trans2 requests.
321 * Implementation of get posix acls in UNIX extensions.
322 * Added set posix acl functionality into the UNIX extensions code.
323 * Updated config.guess/config.sub .
324 * Fix error reply when 'follow symlinks = no'.
325 * BUG 1061, 2045: Only set mtime from pending_modtime if it's
327 * Fixes for LARGE_READX support.
328 * Fix the problem we get on Linux where sendfile fails, but we've
329 already sent the header using send().
330 * BUG 2081: Ensure SE_DESC_DACL_PROTECTED is set if 'map acl
332 * BUG 2088: Ensure inherit permissions is only applied on a new
333 file, not an existing one.
334 * Don't go fishing for the krb5 authorization data unless we know
336 * BUG 2110: Ensure we convert to ucs2 correctly after the
338 * Make strict locking an enum. Auto means use oplock optimization.
339 * Fix client & server to allow 127k READX calls.
340 * More *alloc fixes (includes additional fixes by Albert Chin.
341 * Catch sendfile errors correctly and return the correct values
342 we want the caller to return.
345 o Timur Bakeyev <timur@com.bat.ru>
346 * BUG 2100: change the way we check for errors after a dlopen().
349 o Andrew Bartlett <abartlet@samba.org>
350 * Clarify error message when 'lanman auth = no'.
351 * Remove the unnecessary UTF-8 conversion calls in the calls to
352 auth_winbind from smbd.
355 o Gerald (Jerry) Carter <jerry@samba.org>
356 * BUG 2073: fall back to smb_name if current_user_info is not
357 available in lp_file_list_changed().
358 * Fixes the spurious 'register_message_flags: tdb fetch failed'
360 * Don't run the background LPQ daemon when we are running in
362 * prevent the background LPQ daemon from updating the print queue
363 cache just because multiple smbd processes sent a message that
365 * consolidate printer searches to use find_service rather than
367 * BUG 2091: don't remove statically defined printers in
368 remove_stale_printers().
369 * Fix logic error in add_a_form() that only compared N characters
370 instead of the entire form name.
371 * BUG 2107: fix memory bloating caused by large numbers of
372 print_queue_updates() requests sent via messages.tdb.
373 * Check the setprinter(3) based on the access permissions on
374 the handle and avoid the call to print_access_check().
377 o Nadav Danieli <nadavd@exanet.com>
378 * Short circuit some is_locked() tests if we are oplocked.
381 o Guenther Deschner <gd@samba.org>
382 * Allow 'localhost' as a valid server name in the smbd for the
384 * Fix KRB5_SETPW-defines, no change in behavior (Thanks to Luke
385 Mewburn for the input).
386 * BUG 2059: Add additional checks needed after logic change to the
387 HAVE_WRFILE_KEYTAB detection test.
388 * BUG 1076: Fix interaction with Exchange 5.5. SP4 and a
389 Samba DC. Allow us to lookup at least our own SID.
390 * More fixes to have proper German in swat (Thanks to Reiner
391 Klaproth and Björn Jacke.
392 * BUG 404, 2076: Allow to set OWNER- and GROUP-entries while
393 setting security descriptors with smbcacls and using with
395 * Include the munged_dial, bad_password_count, logon_count, and
396 logon_hours attributes when running 'net rpc vampire'.
397 * Fix segfault in idmap_rid.
398 * When winbindd is operating in the multi-mapping mode of
399 idmap_rid, allow BUILTIN domain-mapping.
400 * Display infolevel 12 in query_dom_info in rpcclient.
401 * Fix bug in winbindd's lowercasing of usernames.
402 * Allow -v or -l for displaying verbose groupmap-listing
403 as well as "verbose".
404 * Backport Samba4 SAM_DELTA_DOMAIN_INFO for use in 'net rpc
406 * Close LDAP-Connection before retrying to open a new connection
408 * Marking "min password length" as depreciated.
409 * Implement SAMR query_dom_info-call info-level 8 server- and
410 client-side, based on samba4-idl.
414 o Jay Fenlason <fenlason@redhat.com>
415 * Fix crash in 'net join' due to calling free on
419 o Rob Foehl <rwf@loonybin.net>.
421 * Try modifying printer published attributes before adding it a
423 * Solaris packaging fixes.
424 * Don't force the cups printer-make-and-model tag as the comment
425 for autoloaded printers.
428 o Johann Hanne <jhml@gmx.net>
429 * BUG 2038: Only fail winbindd_getgroups() if all lookups fail.
432 o David Hu <david.hu@hp.com>
433 * Copy structure from print_queue_update() message rather than
434 referencing it. Fixes seg fault on HP-UX.
437 o Buck Huppmann <buckh@pobox.com>
438 * BUG 2186: Don't free uninitialized credentials.
439 * BUG 2189: Add the HOST/fqdn servicePrincipalName even when
440 dnsDomainName != realm.
443 o Björn Jacke <bjoern@j3e.de>
444 * BUG 2040: Ensure the locale is reset to C to get ASCII-
445 compatible toupper/lower functions.
448 o William Jojo <jojowil@hvcc.edu>
449 * Fix HPUX sendfile and add configure.in tests and code for
453 o Volker Lendecke <vl@samba.org>
454 * Optimize anonymous session setups by workstations in a
456 * Reimplment the QueryUserAliases() server RPC reply.
457 * Re-add the getpwnam-cache for performance.
458 * Cache the result of a pdb_getsampwnam for later SID lookup
460 * Unify the means of localtaing a user's global groups on a
462 * Fix bug when serving the 'Start Menu' in a roaming user profile..
463 * Map more pre-defined NT security descriptors to AFS acls.
464 * Add timeout to AD search requests.
465 * If a connection to a DC is requested (in winbindd), open
466 connections simultaneously to all DCs found.
468 * Fix logic error in handling of 'printcap name' parameter.
469 * Prevent winbindd from SPAM'ing the log files with 'user root
471 * Backport samr_DomInfo2 IDL specification from Samba 4.
472 * Implement smbstatus -n, don't lookup users and groups.
473 * Implement simple mapping that maps the space to another character
474 defined by afsacl:space.
475 * Add support for 'net idmap delete <idmap-file> <SID>'.
476 * Add new parameter 'afs token lifetime' tells the AFS client
477 when to throw away a token (patch from kllin@it.su.se).
480 o Jim McDonough <jmcd@us.ibm.com>
481 * BUG 1952: Try INITSHUTDOWN pipe first, used by newer
482 clients. If it fails, fall back to WINREG.
483 * BUG 1770: Remove READ_ATTRIBUTES from GENERIC_EXECUTE.
486 o Luke Mewburn <lukem@NetBSD.org>
487 * BUG 2150: shmget() - Use POSIX definitions instead of non-
491 o Buchan Milne <bgmilne@mandrake.org>
492 * Mandrake packaging fixes.
495 o Lars Mueller <lmuelle@suse.de>
496 * Fix build of libsmbclient on x86_64.
497 * BUG 2013: Fix testsuite build issues when libsmbclient.so
498 is installed in a non-default location.
499 * BUG 2050: Calculate max_fd for select correctly.
500 * Fix inverted logic heck for HAVE_WRFILE_KEYTAB in autoconf
504 o Jason Mader <jason@ncac.gwu.edu>
505 * BUG 2069: Remove unused variables.
506 * BUG 2075: Remove dead code paths.
507 * BUG 2083: Fix compiler warnings caused by bad type casts.
510 o Gavrie Philipson <gavrie@disksites.com>
511 * BUG 1838: Remove stale printers imeeddiately when
512 processing a SIGHUP and during smb.conf reload.
515 o Tim Potter <tpot@samba.org>
516 * BUG 2080: Fix duplicate call to pdb_get_acct_desc().
517 * BUG 2168: Fix cast in SMB_XMALLOC_ARRAY.
518 * Change the license for the winbindd external interface
520 * HP-UX compile fixes.
523 o Simo Sorce <idra@samba.org>
524 * Backport pdbedit changes from trunk.
527 o Andrew Tridgell <tridge@samba.org>
528 * Bring Samba3 into line with the Samba4 password change code.
531 o Jelmer Vernooij <jelmer@samba.org>
532 * Bug fixes for pdb_{xml,pqsql,xml}
535 o Shiro Yamada <shiro@miraclelinux.com>
536 * BUG 2190: Force SWAT to display parameters in unix charset and
540 --------------------------------------------------
541 ==============================
542 Release Notes for Samba 3.0.10
544 ==============================
546 Common bugs fixed in 3.0.10 include:
548 o Fix for security issues described in CAN-2004-1154.
559 o Jeremy Allison <jra@samba.org>
560 * Added checks surrounding all *alloc() calls to fix
562 * Fix long standing memory size bug in bitmap_allocate().
563 * Remove bogus error check in deferred open file serving
567 o Thomas Bork <tombork@web.de>
568 * Fix autoconf script on platforms using a version of GNU ld
569 that does not include a date stamp in the output of --version.
572 o Luke Mewburn <lukem@NetBSD.org>
573 * Fix the swat install script to deal with the new image
574 destination directory used by the docs.
578 --------------------------------------------------
580 =============================
581 Release Notes for Samba 3.0.9
583 =============================
585 Common bugs fixed in 3.0.9 include:
587 o Problem updating roaming user profiles.
588 o Crash in smbd when printing from a Windows 9x client.
589 o Unresolved symbols in libsmbclient which caused
590 applications such as KDE's konqueror to fail when
591 accessing smb:// URLs.
601 o Jeremy Allison <jra@samba.org>
602 * Correctly detect errno for no acl/ea support.
603 * BUG 2036: Fix seg fault in 'net ads join'.
606 o Gerald (Jerry) Carter <jerry@samba.org>
607 * Solaris packaging fixes.
608 * Fix seg fault in lanman printing code.
609 * BUG 2017: fix testparm reporting for the passwd program
611 * Fix output of smbstatus to match the man page.
612 * BUG 2027: fix conflict with declaration MD5_CTX in system
614 * 2028: Avoid false error messages when copying a long
615 printer name to the device mode.
618 o Guenther Deschner <gd@samba.org>
619 * Allow deldriverex in rpcclient to delete drivers for a
620 specific architecture and a specific version.
621 * Fix a couple of rpcclient spoolss commands (setprinter,
622 setprintername, getdriver) w.r.t to printer-naming scheme.
623 Allow 'localhost' in the server string for certain server-side
625 * BUG 2015: Do not fail on setting file attributes with
629 o Michel Gravey <michel.gravey@optogone.com>
630 * Fix build when using gcc 3.0.
633 o Volker Lendecke <vl@samba.org>
634 * Fix tdb open logic when checking our local_pid after
638 o Jim McDonough <jmcd@us.ibm.com>
639 * BUG 1932: Fix crash in 'net getlocalsid' when run as
643 o Luke Mewburn <lukem@NetBSD.org>
644 BUG 1661: Fix KRB5_SETPW-defines
647 o Buchan Milne <bgmilne@mandrake.org>
648 * BUG 2023: Mandrake packaging fixes for building 3.0.9.
651 o Lars Müller <lmuelle@suse.de>
652 * BUG 2013: Fix unresolved symbols in libsmbclient.so.
655 o Martin Zielinski <mz@seh.de>
656 * Add DeletePrinterDriverEx() functionality to rpcclient.
659 --------------------------------------------------
661 =============================
662 Release Notes for Samba 3.0.8
664 =============================
666 Common bugs fixed in 3.0.8 include:
668 o Compile fixes for HP-UX
669 o Fixes for the printer publishing code used when joined to
671 o Incompatibilities with file system quotas.
672 o Several bugs in the spoolss printing code and print system
674 o Inconsistencies in the username map functionality when
675 configured on domain member servers.
676 o Various compile warnings and errors on various platforms.
677 o Fixes for kerberos interoperability with Windows 200x
678 domains when using DES keys.
679 o Fix for CAN-2004-0930 -- smbd remote DoS vulnerability.
680 o Fix for CAN-2004-0882 -- possible buffer overrun in smbd.
683 New features included in the 3.0.8 release are:
685 o New migration functionality added the the net tool
686 for files/directories, printers, and shares.
687 o New experimental idmap backend for assigning uids/gids
688 directly based on the user/group RID when acting as a
689 member of single domain without any trusts.
690 o Additional printer migration support for XP/2003 platforms.
693 Change in Winbindd Behavior
694 ---------------------------
696 All usernames returned by winbindd are now converted to lower
697 case for better consistency. This means any winbind installation
698 relying on the winbind username will need to rename existing
699 directories and/or files based on the username (%u and %U) to lower
700 case (e.g. mv $name `echo $name | tr '[A-Z]' '[a-z]'`). This may
701 include mail spool files, home directories, valid user lines in
705 Change in Username Map
706 ----------------------
708 Previous Samba releases would only support reading the fully qualified
709 username (e.g. DOMAIN\user) from the username map when performing a
710 kerberos login from a client. However, when looking up a map
711 entry for a user authenticated by NTLM[SSP], only the login name would be
712 used for matches. This resulted in inconsistent behavior sometimes
713 even on the same server.
715 Samba 3.0.8 obeys the following rules when applying the username
718 * When performing local authentication, the username map is
719 applied to the login name before attempting to authenticate
721 * When relying upon a external domain controller for validating
722 authentication requests, smbd will apply the username map
723 to the fully qualified username (i.e. DOMAIN\user) only
724 after the user has been successfully authenticated.
727 ######################################################################
736 Parameter Name Action
737 -------------- ------
738 force printername New
739 sendfile disabled by default
745 o Jeremy Allison <jra@samba.org>
746 * Ensure extended security bit is on only if we negotiated
748 * Simplify statcache to use an in-memory tdb.
749 * If you're selecting a hash algorithm for tdb, you need
750 to do it at open time.
751 * Removed old dir caching code - not being used now we
752 have the statcache anyway.
753 * Simplify the mangle hash code to use an in-memory tdb.
754 * Merge iconv changes from Samba 4 branch.
755 * Fix parsing of names ending in dot and a few other error
757 * BUG 1667: Smbpasswd file could be left locked on some
759 * Fixes for smbclient tar functionality.
760 * BUG 1743: Fix logic bug the deferred open code.
761 * Don't try to set security descriptors on shares where
762 this has been turned off.
763 * Return correct error codes on old SEARCH call.
764 * Ensure we set errno = E2BIG when we overflow in the
765 fast-path character conversion code.
766 * Fix the roundup problem (returning 1mb roundup) for
768 * Added 'stat' command to smbclient to exercise the
769 UNIX_FILE_BASIC info level.
770 * Fix bug where we could incorrectly set sparse attribute.
771 * Fix incorrect locks/unlocks in tdb_lockkeys()/tdb_unlockkeys()
772 (reported by Taj Khattra <taj.khattra@gmail.com>).
773 * Remove locked keys tdb code.
774 * BUG 1886: Prevent delete on close being set for readonly files
775 (and return the correct error code).
776 * Ensure we pass most of the new lock tests except for the cancel
777 lock which is yet to be added (merged from Samba 4 branch).
778 * BUG 1947: Fix incorrect use of getpwnam() etc. interface.
779 * BUG 1956: Ensure errno is saved and restored consistently on a
781 * BUG 1651: Adapted patch from Nalin Dahyabhai for ensuring
782 that all of the appropriate service principal names are set
783 upon joining an AD domain.
784 * Fix the correct use of resume name in the trans2 code.
785 * BUG 1717: Adapted patch from Nalin Dahyabhai to detect the
786 correct salt used when generated the DES key after joining an
788 * Enhanced krb5 detection routines in the autoconf scripts.
791 o Andrew Bartlett <abartlet@samba.org>
792 * Avoid changing the machine account password in the passdb
793 backend, when it has 'already been changed'. This occurs
794 in situations where the secure channel between the workstation
795 and the DC breaks down, such as occurred in the MS04-11
797 * Fix utility name in error message in ntlm_auth.
798 * Fix NTLMv2 for use with pam_winbind.
799 * Remove conversion to and from UTF8 on the winbind pipe.
800 * Allow 'require_membership_of' and 'require-membership-of'.
801 * Fix the error code for 'you didn't specify a domain' in
803 * Use sys_getgroups() rather than scanning all groups
804 when generating SAMR replies.
807 o Igor Belyi <sambauser@katehok.ac93.org>
808 * Ensure pdb user is deleted first before deleting UNIX
809 user (LDAP backend needs this ordering).
812 o Cornelio Bondad Jr <Corny.Bondad@hp.com>
813 * Fix core dump in 'net rpc vampire'.
816 o Vince Brimhall <vbrimhall@novell.com>
817 * Make ldapsam_compat robust against NULL attributes.
820 o Gerald Carter <jerry@samba.org>
821 * Don't limit the number of groups returned by winbindd_getgroups()
823 * BUG 1519: Match Windows 2000 behavior when opening a
824 printer using a servername in the form of an IP address or
826 * BUG 1907: remove extra slashes from the printer name in
827 getprinterdriverdir_1().
828 * Fix standard_sub_snum() to use the current user's gid.
829 * Fix background queue update bug (based on Volker's initial work
831 * Add 'force printername' service parameter for people that want
832 to enforce printername == sharename for spoolss printing.
833 * Ensure consistent usage of the username map. Use the fully
834 qualified DOMAIN\user format for 'security = domain|ads' and
835 apply after authentication has succeeded.
836 * Cosmetic fix for getent output -- lowercase the username only
837 and not the complete domain\username string.
838 * Packaging fixes for Solaris, Redhat, & Fedora.
841 o Sean Chandler <sean.chandler@verizon.net>
842 * Fix memlieak in cliconnect.c.
845 o Darren Chew <darrenc@vicscouts.asn.au>
846 * Solaris packaging fixes.
849 o Nalin Dahyabhai <nalin@redhat.com>
850 * SMB signing fix for 56-bit DES session keys.
853 o Guenther Deschner <gd@samba.org>
854 * add IA64 to the architecture table of printer-drivers.
855 * Add file/share/printer migration functionality to
857 * Show correct help for net groupmap commands.
858 * Fix deadlock loop in winbind's required_membership_sid
860 * Bring the same level of "required_membership"-functionality
861 that ntlm_auth uses, to pam_winbindd as well.
862 * Prevent "net lookup kdc" from seg-faulting when
863 using our own implementation of krb5_lookup_kdc with
865 * Adding getprinter level 7 to rpcclient.
866 * Support migrating printers|shares|files from Server A
867 to Server B while running the net-command on client C.
868 * Fixed krb5_krbhost_get_addrinfo()-parameters and make
869 failure of this call non-critical (Thanks to Love @ Heimdal
870 for the explanation and patch).
871 * Fix typos in net's usage-output.
872 * Fix the paranoia-check to ensure the ldap-attribute and the
873 smb.conf-parameter for samba's "algorithmic rid base" in ldapsam
875 * Fix several bugs in the _samr_query_useraliases() rpc reply.
876 * Check correct string length when verifying password-policies
877 and using extended characters (Thanks to Uwe Morgenroth from CC
878 Compunet and Volker).
879 * Make 'password history'-behavior in ldapsam more consistent.
880 * Adding "Windows x64" as architecture string and driverdir "x64"
881 for the 64bit AMD platform.
882 * BUG 1343: Readd WKGUID-binding to match the correct default-
883 locations of new User-, Group- and Machine-Accounts in Active
884 Directory (this got lost during the last trunk-merge).
885 * Fix printer-migration w.r.t. to new naming-convention for
887 * Allow to migrate win2k3/xp-drivers as well.
888 * Add client-side support of triggering ads printer publishing
889 over msrpc setprinter calls inside the net-tool.
890 * Add the idmap_rid module (written in conjunction with
891 Sumit Bose <sbose@suse.de>).
892 * BUG 1661: Fix build with recent heimdal releases.
893 * Prevent idmap_rid from making unnecessary calls to domain
894 controllers for trusted domains.
897 o Arthur van Dongen <avdongen@xs4all.nl>
898 * Fix typos in pam_winbind log messages and SuSE
902 o Rob Foehl <rwf@loonybin.net>
903 * Typo fixes for log messages in printer publishing code.
904 * Fix memory leak in printer publishing code.
905 * Ensure print_backend_init() only gets called once.
906 * Have smbd check the published status of all printers
908 * Cleanup up the XXX_a_printer() API for consistency.
909 * Refactored the printer publishing code and include better
913 o Steve French <sfrench@us.ibm.com>
914 * Fix IP address override in mount.cifs mount helper and clean
915 up warning messages from the sparse tool and expand syntax help.
916 * Strip guest mount option off before sending to kernel mount
917 routine to avoid logging spurious message.
920 o Satoh Fumiyasu <fumiya@samba.gr.jp>
921 * BUG 1732: Limit share names returned by RAP based on windows
922 character width, not unix character width.
923 * BUG 1498: Ensure that acl entries are stored in the correct
927 o Brett Funderburg <brett@deepfile.com>
928 * Pass create options parameter to nt_create_andx() function
929 from the python bindings.
930 * BUG 1864: Add sd->type field to security descriptor Python
932 * Return an error if a Netapp filer returns NT_STATUS_ACCESS_DENIED
933 when trying to return the security descriptor for a file.
934 * BUG 1884: Fixes for the Python bindings to use the value
935 of the desired_access filed passed into the lsa_open_policy()
939 o Michael Gravey <michel.gravey@optogone.com>
940 * BUG 1776: Fix warnings when building modules caused by
941 certain versions of GNU ld not using the the default
942 --allow-shlib-undefined flag.
945 o Chris Hertel <crh@samba.org>
946 * Fix logic bug in splay tree data structure when finding
948 * Fix bug where an invalid MAC address would be printed by
949 a node status lookup from nmblookup.
952 o Uli Iske <iske@elkb.de>
953 * Update the DNS/eDirectory LDAP schema file.
956 o Björn Jacke <bjacke@sernet.de>
957 * BUG 1766: Unify charset-handling in Content-Type:-headers to
958 UTF-8. Reformat msgstr in msg-files to UTF-8.
959 * Do not use display charset for swat output.
960 * Convert the share names correctly from unix encoding to web
961 encoding and vice versa.
962 * Convert files from status page from unix charset to UTF-8.
965 o Guenter Kukkukk <guenter.kukkukk@kukkukk.com>
966 * BUG 1590: Fix for talking to OS/2 clients (max_mux ignored).
969 o Tom Lackemann <cessnatomny@yahoo.com>
970 * BUG 1954: Fix memory leak in posix acl code.
973 o Volker Lendecke <vl@samba.org>
974 * Robustnss fix for winbindd when sending multiple requests
975 at a high rate for a slow operation.
976 * Solve the problem of user sids ending up with gid's
978 * Use sys_fork instead of fork for the dual daemon so that
979 we get the correct debug pid in the logfiles.
980 * Based on patch from jmcd, implement special lists for the LDAP
981 user attributes to delete.
982 * Fix creation of aliases via usrmgr. Winbind was too strict
983 checking the type of sids.
984 * Lowercase all usernames returned by winbind.
985 * BUG 1545, 1823: Only issue the ldap extended password change
986 operation if the ldap server supports it. Also ignore object
987 class violation errors from the extended operation.
988 * Optimization for 'idmap backend = ldap': When asking sid2id
989 for the wrong type, don't ask ldap when we have the opposite mapping
991 * Fix ldapsam_compat homeDrive.
992 * Add usersidlist and allowedusers subcommands to the net tool
993 in order to support scanning a file server's share and list
994 all users who have permission to connect there.
995 * Allow for multiple DC's to be named as #1c names in lmhosts.
997 * Fix checks for the local pid of an smbd process after
1001 o Herb Lewis <herb@samba.org>
1002 * Added tdbtool to be built by default.
1005 o Love <lha@stacken.kth.se>
1006 * BUG 1955: Inconsistent error return.
1009 o Sorin Manolache <sorinm@gmail.com>
1013 o Jim McDonough <jmcd@us.ibm.com>
1014 * Allow 'net ads lookup' to rely on command line arguments
1015 if contacting an ADS server fails; utilize cldap for lookups.
1016 * Fixup formatting errors in TDB_LOG calls; add printf attribute
1017 support to tdb log functions.
1020 o Bill McGonigle <bill+samba@bfccomputing.com>
1021 * BUG 1926: Type in debug message.
1025 * BUG 1822: Add -D_REENTRANT to CPPFLAGS and -lthread to LDFLAGS
1029 o Luke Mewburn <lukem@NetBSD.org>
1030 * BUG 1782: Prevent testparm from displaying parameter synonyms.
1033 o Stefan Metzmacher <metze@samba.org>
1034 * Fix crash in smbcquotas and smbcacls caused by setup_logging().
1035 * Fix client quota support.
1036 * Fix opening of system quota file.
1039 o Lars Mueller <lmuelle@suse.de>
1040 * Small fixes for autogen.sh to deal with version detection
1041 of autoconf and autoheader; fixes for examples using
1042 libtool to adhere to stricter syntax of newer version.
1045 o Henrik Nordstrom <hno@squid-cache.org>
1046 * Allow winbindd to return the correct number of groups
1047 when the groups array must be enlarged.
1050 o Narayana Pattipati <narayana.pattipati@wipro.com>
1051 * Solaris autoconf detection fixes.
1054 o Tim Potter <tpot@samba.org>
1055 * BUG 1360: (correct fix) Use -Wl when passing flags to
1057 * HP-UX compile fixes (from JBravo on #samba-technical).
1058 * BUG 1731: More HP-UX compiles fixes.
1059 * BUG 1778: Include yp_prot.h before ypclnt.h as AIX 5.2
1060 spits the dummy otherwise.
1061 * Fix bug in Python printerdata wrapper.
1062 * BUG 1762: nss_winbind fixes on AIX 5.x (patch from
1063 <bugzilla-samba@thewrittenword.com>).
1064 * Fix parameter confusion in priming of name-to-sid cache
1065 (Found by Qiao Yang).
1066 * BUG 1888: Remove '..' from all pre-processor commands.
1067 * BUG 1903: Change some #if DEBUG_PASSWORD's to #ifdef
1071 o Matt Selsky <selsky@columbia.edu>
1072 * BUG 350: use autoconf 2.57 feature for checking header file
1073 preprocessing (fixes configure warnings on Solaris).
1076 o Richard Renard <rrenard@idealx.com>
1077 * Fix usermgr.exe and trust relationships.
1080 o Paul Szabo <psz@maths.usyd.edu.au>
1081 * Fix to make find_workgroup use the same
1082 truncation as create_workgroup.
1085 o Richard Sharpe <rsharpe@samba.org>
1086 * Ensure cli_write() can support writes >= 65536 bytes.
1089 o Simo Sorce <idra@samba.org>
1090 * Added check password script code in examples/auth/crackcheck/
1091 * Fix memory corruption bug caused in freeing static memory.
1094 o Andrew Tridgell <tridge@samba.org>
1095 * Remove lp_use_mmap() from map_file() since the latter
1096 is for read only and does not require coherence.
1097 * Ensure that the uuid pack/unpack routines do not go past
1098 the end of the structure.
1099 * Converted Samba 3 tree to use the new utf-16 aware iconv
1101 * Changed iconv to recognise UCS-2LE and UTF-16LE as synonyms.
1102 * Ensure configure only uses '=' instead of the bashism '=='.
1103 * Reduces the number of tdb locking calls made on file IO.
1106 o Jelmer Vernooij <jelmer@samba.org>
1107 * Convert internal data to UTF-8 before calling libxml2.
1108 * Complain if 'password chat' doesn't contain the %u variable
1109 (based on a patch by Ronan Waide).
1113 * BUG 1541: Fix recursive ls in smbclient.
1116 o Igor Zhbanov <bsg@uniyar.ac.ru>
1117 * BUG 1797: Prevent winbind and nmbd from ignoring the "-l"
1120 --------------------------------------------------
1122 =============================
1123 Release Notes for Samba 3.0.7
1125 =============================
1127 This is the latest stable release of Samba. This is the version
1128 that production Samba servers should be running for all
1129 current bug-fixes. There have been several important issues
1130 fixes since the 3.0.6 release. See the "Changes" section for
1131 details on exact updates.
1133 Common bugs fixed in 3.0.7 include:
1135 o Fixes for two Denial of Service vulnerabilities
1136 (CVE ID# CAN-2004-0807 & CAN-2004-0808).
1137 o Winbind failure to return user entries under certain
1139 o Syntax errors in the OpenLDAP schema file (samba.schema).
1140 o Printing errors caused by not setting default values
1141 for the various printing commands.
1150 Parameter Name Action
1151 -------------- ------
1152 winbind enable local accounts disabled by default
1157 o Jeremy Allison <jra@samba.org>
1158 * Fix parsing of names ending in dot and a few other error
1160 * BUG 1674: Move the symlinks checks into reduce_name().
1161 * Fix memleak when checking the valid names smb.conf option.
1162 * Fix memleak on error return path in the file open code.
1163 * More paranoia checks in the hash2 mangling code.
1164 * Fix syntax error in configure.in.
1165 * Match Win2k3's behavior for pathname parsing error returns.
1166 * Make nmbd more robust against bad netbios packets
1168 * Add more checks for invalid ASN.1 packets for SPNEGO packets
1172 o Andrew Bartlett <abartlet@samba.org>
1173 * Janitor work in loadparm.c -- remove unused parameters.
1176 o Gerald Carter <jerry@samba.org>
1177 * BUG 1464: Ensure that printing commands are initialized even
1178 if the 'printing' parameter is not explicitly set.
1179 * Resolve name conflict on DEC OSF-5.1 (inspired by patch from
1180 Adharsh Praveen <rprav@india.hp.com>)
1181 * Work around parsing error in the print change notify code.
1182 * remove duplicate declaration of getprintprocdir from
1184 * Only use sAMAccountName and not userPrincipalName when looking
1185 up a username in AD since the breaks winbindd (lookup_name()
1186 only works with the sAMAccountName).
1187 * Fix bug with winbindd_getpwnam() caused by Microsoft DC's not
1188 filling in the username in the user_info3.
1189 * Fix logic bug in the check for creating a user's home directory
1190 in register_vuid(); caused home directory to be mismatched to
1191 the first share in smb.conf under certain conditions.
1192 * BUG 1656: rename auto.a to auto.smb.
1193 * Ensure that we assign our pid to print jobs (and not our
1194 parent's pid); ensures that spooling jobs from dead smbds
1195 are removed from the tdb.
1196 * Disable 'winbind enable local accounts' by default.
1197 * Adding some initial checks for DragonFly (same as
1201 o Guenther Deschner <gd@samba.org>
1202 * Use SMB_ASSERT() to track down NULL printer names in
1204 * Revert fix for BUG 1474 to avoid unnecessary packaging
1208 o Olaf Flebbe <o.flebbe@science-computing.de>.
1209 * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3
1211 * BUG 1626: More compile fixes.
1214 o Rob Foehl <rwf@loonybin.net>
1215 * Don't clear the PRINT_ATTRIBUTE_PUBLISHED was getting reset
1216 by attempts to sanitize the defined attributes.
1219 o SATOH Fumiyasu <fumiya@miraclelinux.com>
1220 * BUG 1546: Preserve errno in MB strupper_m/strlower_m.
1223 o Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>.
1224 * BUG 1657: Remove used initialized variable,
1225 * BUG 1658: Add a little bit of const.
1228 o Volker Lendecke <vl@samba.org>
1229 * If there's garbage in the pidfile, we should not panic
1230 but assume that no one else is around. We can't find the
1234 o Jim McDonough <jmcd@us.ibm.com>
1235 * Fixup format string in the tdb error messages.
1238 o Jonas Olsson <lexicon@lysator.liu.se>
1239 * BUG 1416: Don't reuncture a users list to NGROUPS_MAX when
1240 reporting the list in usrmgr.exe.
1243 o Tim Potter <tpot@samba.org>
1244 * Fix out-of-tree builds (problem with the script to generate
1245 the svn version number).
1246 * BUG 1360: Need to use -Wl when passing flags to the linker.
1247 * BUG 1741: Define a struct nss_groupsbymem for HPUX 11 which
1248 doesn't have one of its own.
1250 o Simo Sorce <idra@samba.org>
1251 * Fixup compile issues on AIX caused by broken strlen() and
1253 * Update debian packaging files.
1256 o Dimitri van der Spek <dwspek@aboveit.nl>
1257 * Use the correct counter when copying group rids from the
1258 user_info3 struct in pam_winbind.
1261 o Qiao Yang <qyang@stbernard.com>
1262 * BUG 1622: Only cache the user
1265 --------------------------------------------------
1267 =============================
1268 Release Notes for Samba 3.0.6
1270 =============================
1272 Common bugs fixed in 3.0.6 include:
1274 o Schannel failure in winbindd.
1275 o Numerous memory leaks.
1276 o Incompatibilities between the 'write list' and 'force user'
1278 o Premature optimization of the open_directory() internal
1279 function that broke tools such as the ArcServe backup
1280 agent, Macromedia HomeSite, and Robocopy.
1281 o Corrupt workgroup names in nmbd's browse.dat.
1282 o Sharing violation errors commonly seen when opening
1283 when serving Microsoft Office documents from a Samba
1285 o Browsing problems caused by an apostrophe (') in the
1286 computer's description field.
1287 o Problems creating special file types from UNIX CIFS
1288 clients and enabling 'unix extensions'.
1289 o Fix stalls in smbd caused by inaccessible LDAP servers.
1290 o Remove various memory leaks.
1291 o Fix issues in the password lockout feature.
1293 New features introduced in this release include:
1295 O Support symlinks created by CIFS clients which
1296 can be followed on the server.
1297 o Using a cups server other than localhost.
1298 o Maintaining the service principal entry in the system
1299 keytab for integration with other kerberized services.
1300 Please refer to the 'use kerberos keytab' entry in
1301 smb.conf(5). When using the heimdal kerberos libraries,
1302 you must also specify the following in /etc/krb5.conf:
1304 default_keytab_name = FILE:/etc/krb5.keytab
1305 o Support for maintaining individual printer names
1306 stored separately from the printer's sharename.
1307 o Support for maintaining user password history.
1308 o Support for honoring the logon times for user in a
1311 --------------------------------------------
1312 unix extensions = yes (default) and symlinks
1313 --------------------------------------------
1315 Beginning with Samba 3.0.6pre1 (formerly known as 3.0.5pre1),
1316 clients supporting the UNIX extensions to the CIFS protocol
1317 can create symlinks to absolute paths which will be **followed**
1318 by the server. This functionality has been requested in order
1319 to correctly support certain applications when the user's home
1320 directory is mounted using some type of CIFS client (e.g. the
1321 cifsvfs in the Linux 2.6 kernel).
1323 If this behavior is not acceptable for your production environment
1324 you can set 'wide links = no' in the specific share declaration in
1325 the server's smb.conf. Be aware that disabling wide link support
1326 out of a share in Samba may impact the server's performance due
1327 to the fact that smbd will now have to check each path additional
1328 times before traversing it.
1330 ------------------------
1331 Password History Support
1332 ------------------------
1334 The new password history feature allows smbd to check the new
1335 password in password change requests against a list of the user's
1336 previous passwords. The number of previous passwords to save can
1337 be set using pdbedit (4 in this example):
1339 root# pdbedit -P "password history" -C 4
1341 When using the ldapsam passdb backend, it is vital to secure the
1342 following attributes from access by non-administrative users:
1346 * sambaPasswordHistory
1348 You should refer to your directory server's documentation on how
1349 to implement this restriction.
1358 Parameter Name Action
1359 -------------- ------
1361 defer sharing violations New
1362 force unknown acl user New
1364 printcap cache time New
1365 use kerberos keytab New
1369 o Jeremy Allison <jra@samba.org>
1370 * Correct path parsing bug that broke DeletePrinterDriverEx().
1371 * Fix bugs in check_path_syntax() caught by asserts.
1372 * Internal change - rearrange internal global case setting
1373 variables to a per connection basis.
1374 * BUG 1345: Fix premature optimization in unix_convert().
1375 * Allow clients to truncate a locked file.
1376 * BUG 1319: Always check to see if a user as write access
1377 to a share, even when 'force user' is set.
1378 * Fix specific case of open that doesn't cause oplock break,
1379 or share mode check.
1380 * Correct sid type is WKN_GROUP, not alias. Added some
1381 more known types (inspired by patch from Jianliang Lu).
1382 * Allow creation of absolute symlink paths via CIFS clients.
1383 * Fix charset bug in when invoking send_mailslot().
1384 * When using widelinks = no, use realpath to canonicalize
1385 the connection path on connection create for the user.
1386 * Enhance stat open code.
1387 * Fix unix extensions mknod code path.
1388 * Allow unix domain socket creation via unix extensions.
1389 * Auto disable the 'store dos attribute' parameter if the
1390 underlying filesystem doesn't support EAs.
1391 * Implement deferred open code to fix a bug with Excel files
1393 * BUG 1427: Catch bad path errors at the right point. Ensure
1394 all our pathname parsing is consistent.
1395 * Fix SMB signing error introduced by the new deferred open
1397 * Change default setting for case sensitivity to "auto". (see
1398 commit message -- r1154 -- for details).
1399 * Add new remote client arch -- CIFSFS.
1400 * Allow smbd to maintain the service principal entry in the
1401 system keytab file (based on patch Dan Perry <dperry@pppl.gov>,
1402 Guenther Deschner, et. al.).
1403 * Fix longstanding memleak bug with logfile name.
1404 * Fix incorrect type in printer publishing (struct uuid,
1406 * Heimdal compile fixes after introduction of the new ketyab
1408 * Ensure we check attributes correctly on rename request.
1409 * Ensure we defer a sharing violation on rename correctly.
1410 * BUG 607: Ensure we remove DNS and DNSFAIL records immediately
1412 * Fix bogus error message when using "mangling method = hash"
1414 * Turn on sendfile by default for non-Win9x clients.
1415 * Handle non-io opens that cause oplock breaks correctly.
1416 * Ensure ldap replication sleep time is not more than 5 seconds.
1417 * Add support for storing a user's password history.
1418 LDAP portion of the code was based on a patch from
1419 Jianliang Lu <j.lu@tiesse.com>.
1420 * Correct memory leaks found in the password change code.
1421 * Fix support for the mknod command with the Linux CIFS client.
1422 * Remove support for passing the new password to smbpasswd
1423 on the command line without using the -s option.
1424 * Ensure home directory service number is correctly reused
1425 (inspired by patches from Michael Collin Nielsen
1426 <michael@hum.aau.dk>).
1427 * Fix to stop printing accounts from resetting the bas
1428 password and account lockout flags.
1429 * If a account was locked out by an admin (and has a bad
1430 password count of zero) leave it locked out until an admin
1431 unlocks it (but log a message).
1432 * Ensure we return the same ACL revision on the wire that
1434 * BUG 1578: Hardcode replacement for invalid characters as '_'
1435 (based on fix from Alexander E. Patrakov <patrakov@ums.usu.ru>).
1436 * Fix hashed password history for LDAP backends.
1437 * Enforce logon hours restrictions if confiogured (based on code
1438 from Richard Renard <rrenard@idealx.com>).
1439 * BUG 1606: Force smbd to disable sendfile with DOS clients
1440 and ensure that the chained header is filled in for ...&X
1442 * BUG 1602: Fix access to shares when all symlink support
1447 o Tom Alsberg <alsbergt@cs.huji.ac.il>
1448 * Allow pdbedit to export a single user from a passdb backend.
1451 o Andrew Bartlett <abartlet@samba.org>
1452 * Fix parsing bug in GetDomPwInfo().
1453 * Fix segfault in 'ntlm_auth --diagnostics'.
1454 * Re-enable code to allow sid_to_gid() to perform a group
1455 mapping lookup before checking with winbindd.
1456 * Fix memory leak in the trans2 signing code.
1457 * Allow more flexible GSS-SPENGO client and server operation
1459 * Improve smbd's internal random number generation.
1460 * Fix a few outstanding long password changes in smbd.
1461 * Fix LANMAN2 session setup code.
1464 o Eric Boehm <boehm@nortelnetworks.com>
1465 BUG 703: Final touches on netgroup case lookups.
1468 o Jerome Borsboom <j.borsboom@erasmusmc.nl>
1469 * Ensure error status codes don't get overwritten in
1470 lsa_lookup_sids() server code.
1471 * Correct bug that caused smbd to overwrite certain error
1472 codes when returning up the call stack.
1473 * Ensure the correct sid type returned for builtin sids.
1476 o Gerald Carter <jerry@samba.org>
1477 * Fix a few bugs in the Fedora Packaging files.
1478 * Fix for setting the called name to by our IP if the
1479 called name was *SMBSERVER and *SMBSERV. Fixes issue
1480 with connecting to printers via \\ip.ad.dr.ess\printer
1482 * BUG 1315: fix for schannel client connections to servers
1483 when we haven't specifically negotiated AUTH_PIPE_SEAL.
1484 * Allow PrinterDriverData valuenames with embedded backslashes
1485 (Fixes bug with one of the Konica Fiery drivers).
1486 * Fixed string length miscalculation in netbios names that
1487 resulted in corrupt workgroup names in browse.dat.
1488 * When running smbd as a daemon, launch child smbd to update
1489 the lpq cache listing in the background.
1490 * Allow printers "Printers..." folder to be renamed to a string
1491 other than the share name.
1492 * Allow winbindd to use domain trust account passwords when
1493 running on a Samba DC to establish an schannel to remote
1495 * Fix bad merge and ensure that we always use tdb_open_log()
1496 instead of tdb_open_ex() (the former call enforce the 'use
1498 * BUG 1221: revert old change that used single and double
1499 quotes as delimeters in next_token(), and change
1500 print_parameter() to print out parm values surrounded by
1501 double quotes (instead of single quotes).
1502 * Prevent home directories added during the SMBsesssetup&X from
1503 being removed as unused services.
1504 * Invalidate the print object cache for open printer handles when
1505 smbd receives a message that an attribute on a given printer
1507 * Cause the configure script to exit if --enable-cups[=yes] is
1508 defined and the system does not have the cups devel files
1510 * BUG 1297: Prevent map_username() from being called twice
1512 * Ensure that we use the userPrincipalName AD attribute
1513 value for LDAP SASL binds.
1514 * Ensure we remove the tdb entry when deleting a job that
1516 * BUG 1520: Work around bug in Windows XP SP2 RC2 where the
1517 client sends a FindNextPrintChangeNotify() request without
1518 previously sending a FindFirstPrintChangeNotify(). Return
1519 the same error code as Windows 2000 SP4.
1520 * BUG 1516: Manually declare ldap_open_with_timeout() to
1521 workaround compiler errors on IRIX (or other systems without
1523 * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from
1525 * Corrected syntax error in the OID for sambaUnixIdPool,
1526 sambaSidEntry, & sambaIdmapEntry object classes.
1527 * Tighten the cache consistency with the ntprinters.tdb entry
1528 an the in memory cache associated with open printer handles.
1529 * Make sure that register_messages_flags() doesn't overwrite
1530 the originally registered flags.
1533 o Fabien Chevalier <fabien.chevalier@supelec.fr>
1534 * Debian BUG 252591: Ensure that the return value from the
1535 number of available interfaces is initialized in case no
1536 interfaces are actually available.
1539 o Guenther Deschner <gd@sernet.de>
1540 * Implement 'rpcclient setprintername'.
1541 * Add local groups to the user's NT_TOKEN since they are
1542 actually supported now.
1543 * Heimdal compile fixes after introduction of the new keytab
1545 * Correctly honor the info level parameter in 'rpcclient
1547 * Reintroduce 'force unknown acl user' parameter. When getting a
1548 security descriptor for a file, if the owner sid is not known,
1549 the owner uid is set to the current uid. Same for group sid.
1550 * Ensure that REG_SZ values in the SetPrinterData actually
1551 get written in UNICODE strings rather than ASCII.
1552 * Ensure that the last kerberos error return is not invalid.
1553 * Display share ACL entries from rpcclient.
1554 * Correct infinite loop in pam_winbind's verification of
1555 group membership in the 'other sids' field in the user_info3
1559 o Fabian Franz <FabianFranz@gmx.de>
1560 * Support specifying a port in the device URL passed to smbspool.
1563 o Steve French <sfrench@us.ibm.com>
1564 * Handle -S and user mount parms in mount.cifs.
1565 * Fix user unmount of shares mount with suid mount.cifs.
1566 * prevent infinite recusion in reopen_logs() when expanding
1567 the smb.conf variable %I.
1570 o Bjoern Jacke <bj@sernet.de>
1571 * Install libsmbclient into $(LIBDIR), not into hard coded
1572 ${prefix}/lib. This helps amd64 systems with /lib and /lib64
1573 and an explicit configure --libdir setting.
1576 o <kawasa_r@itg.hitachi.co.jp>
1577 * Correct more memory leaks and initialization bugs.
1578 * Fix bug that prevented core dumps from being generated
1580 * Connect to the winbind pipe in non-blocking mode to
1581 prevent processes from hanging.
1582 * Memory leak fixes.
1585 o Stephan Kulow <coolo@suse.de>
1586 * Fix crash bug in libsmbclient.
1589 o Volker Lendecke <vl@samba.org>
1590 * Added vfs_full_audit module.
1591 * Add vfs_afsacl.c which can display & set AFS acls via
1592 the NT security editor.
1593 * Fix crash bug caused by trying to Base64 encode a NULL string.
1594 * Fix DOS error code bug in reply_chkpath().
1595 * Correct misunderstanding of the max_size field in
1596 cli_samr_enum_als_groups; it is more like an account_control
1597 field with individual bits what to retrieve.
1598 * Implement 'net rpc group rename' -- rename domain groups.
1599 * Implement the 'cups server' option. This makes it possible
1600 to have virtual smbd's connect to different cups daemons.
1601 * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
1602 * Fix sid_to_gid() calls in winbindd to prevent loops.
1603 * Ensure that local_sid_to_gid() sets the type of the group on
1605 * Make sure that the clients are given back the IP address to
1606 which they connected in the case of a multi-homed host. Only
1607 affects strings the spoolss printing replies.
1608 * Fix the bad password lockout. This has not worked as pdb_ldap.c
1609 did not ask for the modifyTimestamp attribute, so it could
1610 not find it. Try not to regress by not putting that attrib
1611 in the main list but append it manually for the relevant searches.
1612 * Fix two memleaks in login_cache.c.
1613 * fixes memory bloat when unmarshalling strings.
1614 * Fix compile errors using gcc 3.2 on SuSE 8.2.
1615 * Fix the build for systems without kerberos headers.
1616 * Allow winbindd to handle authentication requests only when
1617 started without either an 'idmap uid' or 'idmap gid' range.
1618 * Fix the build for systems without ldap headers.
1619 * Fix interaction between share security descriptor and the
1620 'read only' smb.conf option.
1621 * Fix bug that caused _samr_lookupsids() with more than 32 (
1622 MAX_REF_DOMAINS) SIDs to fail.
1623 * Allow the 'idmap backend' parameter to accept a list of
1624 LDAP servers for failover purposes.
1625 * Revert code in smbd to remove a tdb when it has become
1627 * Add paranoid checks when mapping SIDs to a uid/gid to
1628 ensure that the type is correct.
1629 * Initial work on getting client support for sending mailslot
1631 * Add 'ldap timeout' parameter.
1632 * Dont always uppercase 'afs username map'.
1633 * Expand aliases for getusersids as well.
1634 * Improved NT->AFS ACL mapping VFS module.
1637 o Herb Lewis <herb@samba.org>
1638 * Add the acls debug class.
1639 * Fix logic bug in netbios name truncate routine.
1640 * Fix smbd crash caused by smbtorture IOCTL test.
1641 * Fix errno tromping before calling iconv to reset the
1643 * need to leave empty dacl so we can remove last ACE.
1646 o Jianliang Lu <Jianliang.Lu@getronics.com>
1647 * Fix to stop smbd hanging on missing group member in
1649 * Make sure Samba returns the correct group types.
1650 * Reset the bad password count password counts upon a successful login.
1653 o Jason Mader <jason@ncac.gwu.edu>
1654 * BUG 1385: Don't use non-consts in a structure initialization.
1657 o Jim McDonough <jmcd@us.ibm.com>
1658 * BUG 1279: SMBjobid fix for Samba print servers running on
1659 Big-Endian platforms.
1662 o Joe Meadows <jameadows@webopolis.com>
1663 * Add optional timeout parameter to ldap open calls.
1664 * Allow get_dc_list() to check the negative cache.
1667 o Stefan Metzmacher <metze@samba.org>
1668 * fix a configure logic bug for linux/XFS quotas when
1669 using --with-sys-quotas.
1670 * Use quota debug class in quota code.
1671 * print out the SVN revision by configure,
1674 o Buchan Milne <bgmilne@mandrake.org>
1675 * Mandrake packaging fixes.
1678 o Lars Mueller <lmuelle@suse.de>
1679 * BUG 1279: Added 'printcap cache time' parameter.
1680 * Fix afs related build issues on SuSE.
1681 * Fix compiler warnings in the kerberos client code.
1684 o James Peach <jpeach@sgi.com>
1685 * More iconv detection fixes for IRIX.
1686 * Compile fixed for systems that do not have C99/UNIX98 compliant
1687 vsnprintf by default.
1688 * Prevent smbd from attempting to use sendfile at all if it is
1689 not supported by the server's OS.
1690 * Allow SWAT to search for index.html when serving html files
1695 * Implement NFS quota support on FreeBSD.
1698 o Tim Potter <tpot@samba.org>
1699 * BUG 1360: Use -Bsymbolic when creating shared libraries to
1700 avoid conflicts with identical symbols in the global namespace
1701 when loading libnss_wins.so.
1704 o Richard Renard <rrenard@idealx.com>
1705 * Save the current password as it is being changed into the
1706 password history list.
1709 o Richard Sharpe <rsharpe@samba.org>
1710 * Fix error return codes on some lock messages.
1711 * BUG 1178: Make the libsmbclient routines callable
1713 * BUG 1333: Make sure we return an error code when
1715 * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when
1716 share mode locking requests fail.
1719 o Simo Sorce <idra@samba.org>
1720 * Update Debian stable & unstable packaging.
1721 * Tidy up parametric options in testparm output.
1724 o Richard Sharpe <rsharpe@samba.org>
1725 * Add sigchild handling to winbindd to restart the child
1726 daemon if necessary.
1729 o Tom Shaw <tomisfaraway@gmail.com>
1730 * Use winbindd_fill_pwent() consistently.
1733 o Nick Thompson <nickthompson@agere.com>
1734 * Protect smbd against broken filesystems which return zero
1738 o Andrew Tridgell <tridge@samba.org>
1739 * Fixed bug in handling of timeout in socket connections.
1742 o Nick Wellnhofer <wellnhofer@aevum.de>
1743 * Prevent lp_interfaces() list from being corrupted. Fixes
1744 bug where nmbd would lose the list of network interfaces
1745 on the system and consequently shutdown.
1748 o James Wilkinson <jwilk@alumni.cse.ucsc.edu>
1749 * Fix ntlm_auth memory leaks.
1752 o Jelmer Vernooij <jelmer@samba.org>
1753 * Additional NT status to unix error mappings.
1754 * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't
1755 get duplicate symbol errors.
1756 * Return an error when the last command read from stdin
1758 * Prepare for better error checking in tar.
1759 * BUG 1474: Fix build of --with-expsam stuff on Solaris.
1762 Changes for older versions follow below:
1764 --------------------------------------------------
1766 =============================
1767 Release Notes for Samba 3.0.5
1769 =============================
1771 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with
1772 the exception of correcting the two security issues outlined
1775 ######################## SECURITY RELEASE ########################
1777 Summary: Multiple Potential Buffer Overruns in Samba 3.0.x
1778 CVE ID: CAN-2004-0600, CAN-2004-0686
1779 (http://cve.mitre.org/)
1782 This is the latest stable release of Samba. This is the version
1783 that production Samba servers should be running for all current
1786 It has been confirmed that versions of Samba 3 prior to v3.0.4
1787 are vulnerable to two potential buffer overruns. The individual
1788 details are given below.
1794 Affected Versions: Samba 3.0.2 and later
1796 The internal routine used by the Samba Web Administration
1797 Tool (SWAT v3.0.2 and later) to decode the base64 data
1798 during HTTP basic authentication is subject to a buffer
1799 overrun caused by an invalid base64 character. It is
1800 recommended that all Samba v3.0.2 or later installations
1801 running SWAT either (a) upgrade to v3.0.5, or (b) disable
1802 the swat administration service as a temporary workaround.
1804 This same code is used internally to decode the
1805 sambaMungedDial attribute value when using the ldapsam
1806 passdb backend. While we do not believe that the base64
1807 decoding routines used by the ldapsam passdb backend can
1808 be exploited, sites using an LDAP directory service with
1809 Samba are strongly encouraged to verify that the DIT only
1810 allows write access to sambaSamAccount attributes by a
1811 sufficiently authorized user.
1813 The Samba Team would like to heartily thank Evgeny Demidov
1814 for analyzing and reporting this bug.
1820 Affected Versions: Samba 3.0.0 and later
1822 A buffer overrun has been located in the code used to support
1823 the 'mangling method = hash' smb.conf option. Please be aware
1824 that the default setting for this parameter is 'mangling method
1825 = hash2' and therefore not vulnerable.
1827 Affected Samba 3 installations can avoid this possible security
1828 bug by using the default hash2 mangling method. Server
1829 installations requiring the hash mangling method are encouraged
1830 to upgrade to Samba 3.0.5.
1833 ##################################################################
1835 --------------------------------------------------
1837 =============================
1838 Release Notes for Samba 3.0.4
1840 =============================
1842 Common bugs fixed in Samba 3.0.4 include:
1844 o Password changing after applying the patch described in
1845 the Microsoft KB828741 article to Windows clients.
1847 o Managing print jobs via Windows on Big-Endian servers.
1848 o Several memory leaks in winbindd and smbd.
1849 o Compile issues on AIX and *BSD.
1852 --------------------
1857 o Jeremy Allison <jra@samba.org>
1858 * Fix path processing for DeletePrinterDriverEx().
1859 * BUG 1303: Fix for Microsoft hotfix MS04-011 password change
1863 o Andrew Bartlett <abartlet@samba.org>
1864 * Fix alignment bug in GetDomPwInfo().
1867 o Alexander Bokovoy <ab@samba.org>
1868 * Fix utime[s]() issues in smbwrapper on systems
1869 that can boot both the 2.4 and 2.6 Linux kernels.
1872 o Gerald Carter <jerry@samba.org>
1873 * Fedora packaging fixes.
1874 * BUG 1302: Fix seg fault by not trying to optimize a list of
1875 invalid gids using the wrong array size.
1876 * BUG 1309: fix seg fault caused by trying to strdup(NULL)
1877 seen when 'security = share'.
1878 * Fix problems when using IBM's compiler on AIX.
1879 * Link Developer's Guide, Example Guide, and multi-page HOWTO
1880 into SWAT's welcome page.
1881 * BUG 1293: fix double free in printer publishing code.
1884 o Wim Delvaux <wim.delvaux@adaptiveplanet.com>
1885 * Fix for handling timeouts in socket connections.
1888 o Michel Gravey <michel.gravey@optogone.com>
1889 * BUG 483: patch from to fix password hash creation in SWAT.
1892 o Volker Lendecke <vl@samba.org>
1893 * Close the open NT pipes before the tdis.
1894 * Fix AFS related build issues.
1895 * Handle error conditions when base64 encoding a blob of 0 bytes.
1898 o Herb Lewis <herb@samba.org>
1899 * Added 'acls' debug class.
1901 o kawasa_r@itg.hitachi.co.jp
1902 * Multiple variable initialization and memory leak fixes.
1905 o Stephan Kulow <coolo@suse.de>
1906 * Fix string length bug in libsmbclient that caused KDE's
1908 * BUG 429: More libsmbclient fixes.
1911 o Jim McDonough <jmcd@us.ibm.com>
1912 * BUG 1007, 1279: Store the print job using a little-endian key.
1916 o Compile fix for OpenBSD (ENOTSUP not supported).
1919 o Stefan Metzmacher <metze@samba.org>
1920 * Correct bug in disks quota views from explorer.
1923 o Tim Potter <tpot@samba.org>
1924 BUG 1305: Correct debug output.
1927 o Richard Sharpe <rsharpe@samba.org>
1928 * Fix incorrect error code mapping.
1931 o Jelmer Vernooij <jelmer@samba.org>
1932 * Add additional NT_STATUS errorm mappings.
1935 Changes for older versions follow below:
1937 --------------------------------------------------
1939 =============================
1940 Release Notes for Samba 3.0.3
1942 =============================
1945 Common bugs fixed in Samba 3.0.3 include:
1947 o Crash bugs and change notify issues in Samba's printing code.
1948 o Honoring secondary group membership on domain member servers.
1949 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
1950 o Substitution errors for %[UuGg] in smb.conf.
1951 o winbindd crashes when using ADS security mode.
1952 o SMB signing errors.
1953 o Delays in winbindd startup caused by unnecessary
1954 connections to trusted domain controllers.
1955 o Various small memory leaks.
1956 o Winbindd failing due to expired Kerberos tickets.
1958 New features introduced in Samba 3.0.3 include:
1960 o Improved support for i18n character sets.
1961 o Support for account lockout policy based on
1962 bad password attempts.
1963 o Improved support for long password changes (>14
1964 characters) and strong password enforcement.
1965 o Support for Windows aliases (i.e. nested groups).
1966 o Experimental support for storing DOS attribute on files
1967 and folders in Extended Attributes.
1968 o Support for local nested groups via winbindd.
1969 o Specifying options to be passed directly to the CUPS libraries.
1971 Please be aware that the Samba source code repository was
1972 migrated from CVS to Subversion on April 4, 2004. Details on
1973 accessing the Samba source tree via anonymous svn can be found
1974 at http://svn.samba.org/samba/subversion.html.
1977 Changes since 3.0.2a
1978 --------------------
1982 Parameter Name Action
1983 -------------- ------
1986 only user Deprecated
1987 store dos attributes New
1989 winbind nested groups New
1995 o Jeremy Allison <jra@samba.org>
1996 * Ensure that Kerberos mutex is always properly unlocked.
1997 * Removed Heimdal "in-memory keytab" support.
1998 * Fixup the 'multiple-vuids' bugs in our server code.
1999 * Correct return code from lsa_lookup_sids() on unmapped
2000 sids (based on work by vl@samba.org).
2001 * Fix the "too many fcntl locks" scalability problem
2003 * Fixup correct (as per W2K3) returns for lookupsids
2004 as well as lookupnames.
2005 * Fixups for delete-on-close semantics as per Win2k3 behavior.
2006 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
2007 * Fix "unable to initialize" bug when smbd hasn't been run with
2008 new system and a user is being added via pdbedit/smbpasswd.
2009 * Added NTrename SMB (0xA5).
2010 * Fixup correct timeout values for blocking lock timeouts.
2011 * Fix various bugs reported by 'gentest'.
2012 * More locking fixes in the case where we own the lock.
2013 * Fix up regression in IS_NAME_VALID and renames.
2014 * Don't set allocation size on directories.
2015 * Return correct error code on fail if file exists and target
2017 * Added client "hardlink" comment to test doing NT rename with
2018 hard links. Added hardlink_internals() code - UNIX extensions
2019 now use this as well.
2020 * Use a common function to parse all pathnames from the wire for
2021 much closer emulation of Win2k3 error return codes.
2022 * Implement check_path_syntax() and rewrite string sub
2023 functions for better multibyte support.
2024 * Ensure msdfs referrals are multibyte safe.
2025 * Allow msdfs symlink syntax to be more forgiving.
2026 eg. sym_link -> msdfs://server/share/path/in/share
2027 or sym_link -> msdfs:\\server\share\path\in\share.
2028 * Cleanup multibyte netbios name support in nmbd ( based on patch
2029 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
2030 * Fix check_path_syntax() for multibyte encodings which have
2031 no '\' as second byte (based on work by ab@samba.org.
2032 * Fix the "dfs self-referrals as anonymous user" problem
2033 (based on patch from vl@samba.org).
2034 * BUG 1064: Ensure truncate attribute checking is done correctly
2035 on "hidden" dot files.
2036 * Fix bug in anonymous dfs self-referrals again.
2037 * Fix get/set of EA's in client library
2038 * Added support for OS/2 EA's in smbd server.
2039 * Added 'ea support' parameter to smb.conf.
2040 * Added 'store dos attributes' parameter to smb.conf.
2041 * Fix wildcard identical rename.
2042 * Fix reply_ctemp - make compatible with w2k3.
2043 * Fix wildcard unlink.
2044 * Fix wildcard src with wildcard dest renames.
2045 * BUG 1139: Fix based on suggestion by jdev@panix.com.
2046 swap lookups for user and group - group will do an
2047 algorithmic lookup if it fails, user won't.
2048 * Make EA's lookups case independent.
2049 * Fix SETPATHINFO in 'unix extensions' support.
2050 * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for
2051 the UNIX info levels, and the short case preserve names.
2054 o Timur Bakeyev <timur@com.bat.ru>
2055 * BUG 1144: only set --with-fhs when the argument is 'yes'
2056 * BUG 1152: Allow python modules to build despite libraries added
2057 to LDFLAGS instead of LDPATH.
2058 * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
2061 o Craig Barratt <cbarratt@users.sourceforge.net>
2062 * BUG 389: Allow multiple exclude arguments with smbclient
2063 tar -Xr options (better support for Amanda backup client).
2066 o Andrew Bartlett <abartlet@samba.org>
2067 * Include support for linking with cracklib for enforcing strong
2069 * Add support for >14 character password changes from Windows
2071 * Add 'admin set password' capability to 'net rpc'.
2072 * Allow 'net rpc samdump' to work with any joined domain
2073 regardless of smb.conf settings.
2074 * Use an allocated buffer for count_chars.
2075 * Add sanity checks for changes in the domain SID in an
2077 * Implement python unit tests for Samba's multibyte string
2079 * Remove 'unicode' smb.conf option.
2080 * BUG 1138: Fix support for 'optional' SMB signing and other
2082 * BUG 169: Fix NTLMv2-only behavior.
2083 * Ensure 'net' honors the 'netbios name' in the smb.conf by
2085 * Support SMB signing on connections using only the LANMAN
2086 password and generate the correct the 'session key' for these
2088 * Implement --required-membership-of=, an ntlm_auth option
2089 that restricts all authentication to members of this particular
2091 * Improve our fall back code for password changes.
2092 * Only send the ntlm_auth 'ntlm-server-1' helper client a '.'
2093 after the server had said something (such as an error).
2094 * Add 'ntlm-server-1' helper protocol to ntlm_auth.
2097 o Alexander Bokovoy <ab@samba.org>
2098 * Fix incorrect size calculation of the directory name
2100 * Fix problems with very long filenames in both smbd and smbclient
2101 caused by truncating paths during character conversions.
2102 * Fix smbfs problem with Tree Disconnect issued before smbfs
2106 o Gerald Carter <jerry@samba.org>
2107 * BUG 850: Fix 'make installmodules' bug on True64.
2108 * BUG 66: mark 'only user' deprecated.
2109 * Remove corrupt tdb and shutdown (only for printing tdbs,
2110 connections, sessionid & locking).
2111 * decrement smbd counter in connections.tdb in smb_panic().
2112 * RedHat specfile updates.
2113 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
2114 * BUG 1147; bad pointer case in get_stored_queue_info()
2116 * BUG 761: read the config file before initialized default
2117 values for printing options; don't default to bsd printing
2119 * Allow the 'printing' parameter to be set on a per share basis.
2120 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
2121 * BUG 848: don't create winbind local users/groups that already
2123 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
2125 * BUG 488: fix the 'show client in col 1' button and correctly
2126 enumerate active connections.
2127 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
2128 problem when storing the updating pid for the lpq cache.
2129 * BUG 1007 (partial): Fix print change notify bugs.
2130 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
2131 and winbind use default domain = yes. Also ensures that
2132 * BUG 1151: Ensure that winbindd users are passed through
2134 * Fix client rpc binds for ASU derived servers (pc netlink,
2136 * BUG 417, 1128: Ensure that the current_user_info is set
2137 consistently so that %[UuGg] is expanded correctly.
2138 * BUG 1195: Fix crash in winbindd when the ADS server is
2140 * BUG 1185: Set reconnect time to be the same as the
2141 'winbind cache time'.
2142 * Ensure that we return the sec_desc in smb_io_printer_info_2.
2143 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
2144 * BUG 1095: Honor the '-l' option in smbclient.
2145 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
2147 * Ensure server schannel uses the auth level requested by the
2149 * Removed --with-cracklib option due to potential crash issue.
2150 * Fix -lcrypto linking problem with wbinfo.
2151 * BUG 761: allow printing parameter to set defaults on a per
2153 * Add 'cups options' parameter to allow raw printing without
2154 changing /etc/cups/cupsd.conf.
2155 * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and
2157 * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
2158 * BUG 1288: resolve any machine netbios name (0x00) and not just
2160 * BUG 1199: Fix potential symlink issue in
2161 examples/printing/smbprint.
2164 o Robert Dahlem <Robert.Dahlem@gmx.net>
2165 * BUG 1048: Don't return short names when when 'mangled names = no'
2168 o Guenther Deschner <gd@suse.com>
2169 * Remove hard coded attribute name in the ads ranged retrieval
2171 * Add --with-libdir and --with-mandir to autoconf script.
2174 o Bostjan Golob <golob@gimb.org>
2175 * BUG 1046: Fix getpwent_list() so that the username is not
2176 overwritten by other fields.
2179 o Landon Fuller <landonf@opendarwin.org>
2180 * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller)
2181 to fix user/group enumeration on systems whose libc does not
2182 call setgrent() before trying to enumerate users (i.e.
2186 o Steve French <sfrench@us.ibm.com>
2187 * Update mount.cifs to version 1.1.
2188 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
2189 * Fixes to minor security bug in the mount helper.
2190 * Fix credential file mounting for cifs vfs.
2191 * Fix free of incremented pointer in cifsvfs mount helper.
2192 * Fix path canonicalization of the mount target path and help
2193 text display in the cifs mount helper.
2194 * Add missing guest mount option for mount.cifs.
2197 o SATOH Fumiyasu <fumiya@miraclelinux.com>
2198 * BUG 1055; formatting fixes for 'net share'.
2199 * BUG 692: correct truncation of share names and workgroup
2201 * BUG 1088: use strchr_m() for query_host (smbclient -L).
2202 * Patch from to internally count characters correctly.
2205 o Paul Green <paulg@samba.org>
2206 * Update VOS _POSIX_C_SOURCE macro to 200112L.
2207 * Fix bug in configure.ion by moving the first use of
2208 AC_CHECK_HEADERS so it is always executed.
2209 * Fix configure.in to only use $BLDSHARED to select whether to
2210 build static or shared libraries.
2213 o Pat Haywarrd <Pat.Hayward@propero.net>
2214 * Make the session_users list dynamic (max of 128K).
2217 o Cal Heldenbrand <calzplace@yahoo.com>
2218 * Fix for for 'pam_smbpass migrate' functionality.
2221 o Chris Hertel <crh@samba.org>
2222 * fix enumeration of shares 12 characters in length via
2226 o Ulrich Holeschak <ulrich@holeschak.de>
2227 * BUG 932: fix local password change using pam_smbpass
2230 o Krischan Jodies <kj@sernet.de>
2231 * Implement 'net rpc group delete'
2234 o John Klinger <john.klinger@lmco.com>
2235 * Return NSS_SUCCESS once the max number of gids possible
2236 has been found in initgroups() on Solaris.
2237 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
2240 o Volker Lendecke <vl@samba.org>
2241 * Fix success message for net groupmap modify.
2242 * Fix errors when enumerating members of groups in 'net rpc'.
2243 * Match Windows behavior in samr_lookup_names() by returning
2244 ALIAS(4) when you search in BUILTIN.
2245 * Fix server SAMR code to be able to set alias info for
2247 * Fix duplication of logic when creating groups via smbd.
2248 * Ensure that the HWM values are set correctly after running
2250 * Add 'net rpc group add'.
2251 * Implement 'net groupmap set' and 'net groupmap cleanup'.
2252 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
2253 * Fix wb_delgrpmem (wbinfo -o).
2254 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
2255 * Fix sambaUserWorkstations on a Samba DC.
2256 * Implement wbinfo -k: Have winbind generate an AFS token after
2257 authenticating the user.
2258 * Add expand_msdfs VFS module for providing referrals based on the
2259 the client's IP address.
2260 * Implement client side NETLOGON GetDCName function.
2261 * Fix caching of name->sid lookups.
2262 * Add support in winbindd for expanding nested local groups.
2263 * Fix memleak in winbindd.
2265 * Don't list domain groups from BUILTIN.
2266 * Fix memleak in policy handle utility functions.
2267 * Decrease winbindd startup time by only contacting trusted
2268 domains as necessary.
2269 * Allow winbindd to ask the DC for its domain for a trusted
2271 * Fix Netscape DS schema based on comments from
2272 <thomas.mueller@christ-wasser.de>.
2273 * Correct case where adding a domain user to a XP local group
2274 did a lsalookupname on the user without domain prefix, and
2276 * Fix segfault in winbindd caused by 'wbinfo -a'.
2279 o Herb Lewis <herb@samba.org>
2280 * Fix typo for tag in proto file.
2281 * Add missing #ifdef HAVE_BICONV stuff.
2282 * Truncate Samba's netbios name at the first '.' (not
2286 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
2287 * Bug fixes and enhancements to libsmbclient library.
2290 o Jianliang Lu <j.lu@tiesse.com>
2291 * Enforce the 'user must change password at next login' flag.
2292 * Decode meaning of 'fields present' flags (improves support
2295 * Don't force an upper case domain name in the ntlmssp code.
2298 o L. Lucius <ib@digicron.com>.
2302 o Jim McDonough <jmcd@us.ibm.com>
2303 * Add versioning support to tdbsam.
2304 * Update the IBM Directory Server schema with the OpenLDAP
2306 * Various decoding fixes to improve usrmgr.exe support.
2307 * Fix statfs redeclaration of statfs struct on ppc
2308 * Implement support for password lockout of Samba domain
2309 controllers and standalone servers.
2310 * Get MungedDial attribute actually working with full TS
2311 strings in it for pdb_ldap.
2312 * BUG 1208 (partial): Improvements for working with expired krb5
2313 tickets in winbindd.
2314 * Use timegm, or our already existing replacement instead of
2315 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
2316 * Remove modifyTimestamp from list of our attributes.
2317 * Fix lsalookupnames to check for domain users as well as local
2319 * Merge struct uuid replacement for GUID from trunk.
2320 * BUG 1208: Finish support for handling expired tickets in
2321 winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
2324 o Stefan Metzmacher <metze@samba.org>
2325 * Implement new VERSION schema based on subversion revision
2327 * Add shadow_copy vfs module.
2328 * Fix segault in login_cache support.
2331 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
2332 o BUG 979 -- Fix quota display on AIX.
2335 o James Peach <jpeach@sgi.com>
2336 * Correct check for printf() format when using the SGI MIPSPro
2338 * BUG 1038: support backtrace for 'panic action' on IRIX.
2339 * BUG 768: Accept profileing arg to IRIX init script.
2340 * BUG 748: Relax arg parsing to sambalp script (IRIX).
2341 * BUG 758: Fix pdma build.
2342 * Search IRIX ABI paths for libiconv. Based on initial fix from
2346 o Kurt Pfeifle <kpfeifle@danka.de>
2347 * Add example shell script for migrating drivers and printers
2348 from a Windows print server to a Samba print server using
2349 smbclient/rpcclient (examples/printing/VamireDriversFunctions).
2352 o Tim Potter <tpot@samba.org>
2353 * Fix logic bug in tdb non-blocking lock routines when
2355 * BUG 1025: Include sys/acl.h in check for broken nisplus
2357 * BUG 1066: s/printf/d_printf/g in SWAT.
2358 * BUG 1098: rename internal msleep() function to fix build
2360 * BUG 1112: Fix for writable printerdata problem in python bindings.
2361 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
2362 * BUG 1155: enclose use of fchown() with guards.
2363 * Relicense tdb python module as LGPL.
2366 o Richard Sharpe <rsharpe@samba.org>
2367 * Add support to smbclient for multiple logins on the same
2368 session (based on work by abartlet@samba.org).
2369 * Correct blocking condition in smbd's use of accept() on IRIX.
2370 * Add support for printing out the MAC address on nmblookup.
2373 o Simo Sorce <idra@samba.org>
2374 * Replace unknown_3 with fields_present in SAMR code.
2375 * More length checks in strlcat().
2378 o Andrew Tridgell <tridge@samba.org>
2379 * Rewrote the AIX UESS backend for winbindd.
2380 * Fixed compilation with --enable-dmalloc.
2381 * Change tdb license to LGPL (see source/tdb/tdb.c).
2382 * Force winbindd to use schannel in clients connections to
2386 o Jelmer Vernooij <jelmer@samba.org>
2387 * Fix ETA Calculation when resuming downloads in smbget.
2388 * Add -O (for writing downloaded files to standard out)
2389 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
2390 * Fix syntax error in example mysql table
2393 o TAKEDA yasuma <yasuma@miraclelinux.com>
2394 * BUG 900: fix token processing in cmd_symlink, cmd_link,
2395 cmd_chown, cmd_chmod smbclient functions.
2398 o Shiro Yamada <shiro@miraclelinux.com>
2399 * BUG 1129: install image files for SWAT.
2402 --------------------------------------------------
2404 ==============================
2405 Release Notes for Samba 3.0.2a
2407 ==============================
2409 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
2410 to address, in particular, a problem when using pdbedit to
2411 sanitize (--force-initialized-passwords) Samba's tdbsam
2412 backend. This is the latest stable release of Samba. This
2413 is the version that all production Samba servers should be
2414 running for all current bug-fixes.
2416 ******************* Attention! Achtung! Kree! *********************
2418 Beginning with Samba 3.0.2, passwords for accounts with a last
2419 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
2420 ldapsam, etc...) of zero (0) will be regarded as uninitialized
2421 strings. This will cause authentication to fail for such
2422 accounts. If you have valid passwords that meet this criteria,
2423 you must update the last change time to a non-zero value. If you
2424 do not, then 'pdbedit --force-initialized-passwords' will disable
2425 these accounts and reset the password hashes to a string of X's.
2427 ******************* Attention! Achtung! Kree! *********************
2436 Please refer to the CVS log for the SAMBA_3_0 branch for complete
2437 details. The list of changes per contributor are as follows:
2440 o Jeremy Allison <jra@samba.org>
2441 * Added paranoia checks in parsing code.
2444 o Andrew Bartlett <abartlet@samba.org>
2445 * Ensure that changes to uninitialized passwords in ldapsam
2446 are written to the DIT.
2449 o Gerald (Jerry) Carter <jerry@samba.org>
2450 * Fixed iterator in tdbsam.
2451 * Fix bug that disabled accounts with a valid NT password
2452 hash, but no LanMan hash.
2455 o Steve French <sfrench@us.ibm.com>
2456 * Added missing nosetuid and noexec options.
2459 o Bostjan Golob <golob@gimb.org>
2460 * BUG 1046: Don't overwrite usernames of entries returned
2464 o Sebastian Krahmer <krahmer@suse.de>
2465 * Fixed potential crash bug in NTLMSSP parsing code.
2468 o Tim Potter <tpot@samba.org>
2469 * Fixed logic in tdb_brlock error checking.
2472 o Urban Widmark <urban@teststation.com>
2473 * Set nosuid,nodev flags in smbmnt by default.
2476 --------------------------------------------------
2478 =============================
2479 Release Notes for Samba 3.0.2
2481 =============================
2483 It has been confirmed that previous versions of Samba 3.0 are
2484 susceptible to a password initialization bug that could grant an
2485 attacker unauthorized access to a user account created by the
2486 mksmbpasswd.sh shell script.
2488 The Common Vulnerabilities and Exposures project (cve.mitre.org)
2489 has assigned the name CAN-2004-0082 to this issue.
2491 Samba administrators not wishing to upgrade to the current
2492 version should download the 3.0.2 release, build the pdbedit
2495 root# pdbedit-3.0.2 --force-initialized-passwords
2497 This will disable all accounts not possessing a valid password
2498 (e.g. the password field has been set a string of X's).
2500 Samba servers running 3.0.2 are not vulnerable to this bug
2501 regardless of whether or not pdbedit has been used to sanitize
2504 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
2507 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
2508 o Logging onto a Samba domain from Windows XP clients.
2509 o Problems with the %U and %u smb.conf variables in relation to
2510 Windows 9x/ME clients.
2511 o Kerberos failures due to an invalid in memory keytab detection
2513 o Updates to the ntlm_auth tool.
2514 o Fixes for various SMB signing errors.
2515 o Better separation of WINS and DNS queries for domain controllers.
2516 o Issues with nss_winbind FreeBSD and Solaris.
2517 o Several crash bugs in smbd and winbindd.
2518 o Output formatting fixes for smbclient for better compatibility
2519 with scripts based on the 2.2 version.
2528 Parameter Name Action
2529 -------------- ------
2530 ldap replication sleep New
2531 read size removed (unused)
2532 source environment removed (unused)
2538 Please refer to the CVS log for the SAMBA_3_0 branch for complete
2539 details. The list of changes per contributor are as follows:
2541 o Jeremy Allison <jra@samba.org>
2542 * Revert change that broke Exchange clear text samlogons.
2543 * Fix gcc 3.4 warning in MS-DFS code.
2544 * Tidy up of NTLMSSP code.
2545 * Fixes for SMB signing errors
2546 * BUG 815: Workaround NT4 bug to support plaintext
2547 password logins and UNICODE.
2548 * Fix SMB signing bug when copying large files.
2549 * Correct error logic in mkdir_internals() (caused a panic
2550 when combined with --enable-developer).
2551 * BUG 830: Protect against crashes due to bad character
2555 o Petri Asikainen <paca@sci.fi>
2556 * BUG 330, 387:Fix single valued attribute updates when
2557 working with Novell NDS.
2560 o Andrew Bartlett <abartlet@samba.org>
2561 * Correctly handle per-pipe NTLMSSP inside a NULL session.
2562 * Fix segfault in gencache
2563 * Fix early free() of encrypted_session_key.
2564 * Change DC lookup routines to more carefully separate
2565 DNS names (realms) from NetBIOS domain names.
2566 * Add new sid_to_dn() function for internal winbindd use.
2567 * Refactor cli_ds_enum_domain_trusts().
2568 * BUG 707: Implement range retrieval of ADS attributes (based
2569 on work from Volker <vl@samba.org> and Guenther Deschner
2571 * Automatically initialize the signing engine if a session key
2573 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
2574 encoded strings, only form input in SWAT.
2575 * Resets the NTLMSSP state for new negotiate packets.
2576 * Add 2-byte alignments in net_samlogon() queries to parse
2577 odd-length plain text passwords.
2578 * Allow Windows groups with no members in winbindd.
2579 * Allow normal authentication in the absence of a server
2580 generated session key.
2581 * More optimizations for looking up UNIX group lists.
2582 * Clean up error codes and return values for pam_winbindd
2583 and winbindd PAM interface.
2584 * Fix string return values in ntlm_auth tool.
2585 * Fix segfault when 'security = ads' but no realm is defined.
2586 * BUG 722: Allow winbindd to map machine accounts to uids.
2587 * More cleanups for winbindd's find_our_domain().
2588 * More clearly detect whether a domain controller is an NT4
2589 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
2590 * Increase separation between DNS queries for hosts and queries
2591 for AD domain controllers.
2592 * Include additional NT_STATUS to PAM error mappings.
2593 * Password initialization fixes.
2596 o Justin Baugh <justin.baugh@request.com>
2597 * BUG 948: Implement missing functions required for FreeBSD
2598 nss_winbind support.
2601 o Alexander Bokovoy <ab@samba.org>
2602 * BUG 922: Make sure enable fast path for strlower_m() and
2606 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
2607 * Fix crash when using 'security = server' and 'encrypt
2608 passwords = no' by always initializing the session key.
2611 o Dmitry Butskoj <buc@odusz.elektra.ru>
2612 * Fix for special files being hidden from admins.
2615 o Gerald (Jerry) Carter <jerry@samba.org>
2616 * Fix bug in the lanman session key generation. Caused
2617 "decode_pw: incorrect password length" error messages.
2618 * Save the right case for the located user name in
2619 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
2620 * BUG 897: Add well known rid for pre win2k compatible access
2622 * BUG 887: Correct typo in delete user script example.
2623 * Use short lived TALLOC_CTX* for allocating printer objects
2624 from the print handle cache.
2625 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
2626 * Fix several warnings reported by the SUN Forte C compiler.
2627 * Fully control DNS queries for AD DC's using 'name resolve order'.
2628 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
2629 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
2630 * BUG 936: fix bind credentials for schannel binds in smbd.
2631 * BUG 446: Fix output of smbclient for better compatibility
2632 with scripts based on the 2.2 version (including Amanda).
2633 * BUG 891, 949: Fedora packaging fixes.
2634 * Fix bug that caused rpcclient to incorrectly retrieve
2635 the SID for a server (this causing all calls that required
2636 this information to fail).
2637 * BUG 977: Don't create a homes share for a user if a static
2638 share already exists by the same name.
2639 * Removed unused smb.conf options.
2640 * Password initialization fixes.
2641 * Set the disable flag for template accounts created by
2643 * Disable any account has no passwords and does not have the
2644 ACB_PWNOTREQ bit set.
2647 o Guenther Deschner <gd@suse.com>
2648 * Install smbwrapper.so should be put into the $(libdir)
2650 * Add the capability to specify the new user password
2651 for "net ads password" on the command line.
2652 * Correctly detect AFS headers on SuSE.
2655 o James Flemer <jflemer@uvm.edu>
2656 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
2657 HAVE_SYS_ATTRIBUTES_H.
2660 o Luke Howard <lukeh@PADL.COM>
2661 * Fix segfault in session setup reply caused by a early free().
2664 o Stoian Ivanov <sdr@bultra.com>
2665 * Implement grepable output for smbclient -L.
2668 o LaMont Jones <lamont@debian.org>
2669 * BUG 225328 (Debian): Correct false failure LFS test that resulted
2670 in _GNU_SOURCE not being defined (thus resulting in strndup()
2674 o Volker Lendecke <vl@samba.org>
2675 * BUG 583: Ensure that user names always contain the short
2676 version of the domain name.
2677 * Fix our parsing of the LDAP uri.
2678 * Don't show the 'afs username map' in the SWAT basic view.
2679 * Fix SMB signing issues in relation to failed NTLMSSP logins.
2680 * BUG 924: Fix return codes in smbtorture harness.
2681 * Always lower-case usernames before handing it to AFS code.
2682 * Add a German translation for SWAT.
2683 * Fix a segfaults in winbindd.
2684 * Fix the user's domain passed to register_vuid() from
2685 reply_spnego_kerberos().
2686 * Add NSS example code in nss_winbind to convert UNIX
2687 id's <-> Windows SIDs.
2688 * Display more descriptive error messages for login via 'net'.
2689 * Fix compiler warning in the net tool.
2690 * Fix length bug when decoding base64 strings.
2691 * Ensure we don't call getpwnam() inside a loop that is iterating
2692 over users with getpwent(). This broke on glibc 2.3.2.
2695 o Herb Lewis <herb@samba.org>
2696 * Fix bit rot in psec.
2699 o Jianliang Lu <j.lu@tiesse.com>
2700 * Ensure we delete the group mapping before calling the delete
2702 * Define well known RID for managing the "Power Users" group.
2703 * BUG 381: check builtin (not local) group SID when updating
2705 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
2709 o John Klinger <john.klinger@lmco.com>
2710 * Implement initgroups() call in nss_winbind on Solaris.
2713 o Jim McDonough <jmcd@us.ibm.com>
2714 * Fix regression in net rpc join caused by recent changes
2715 to cli_lsa_query_info_policy().
2716 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
2720 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
2721 * BUG 570: Ensure that configure honors the LDFLAGS variable.
2724 o Stefan Metzmacher <metze@samba.org>
2725 * Implement LDAP rebind sleep patch.
2726 * Revert to 2.2 quota code because of so many broken quota files
2728 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
2729 XFS_USER_QUOTA -> USRQUOTA
2730 XFS_GROUP_QUOTA -> GRPQUOTA
2731 * Fix disk_free calculation with group quotas.
2732 * Add debug class 'quota' and a lot of DEBUG()'s
2734 * Fix sys_chown() when no chown() is present.
2735 * Add SIGABRT to fault handling in order to catch got a
2736 backtrace if an error occurs the OpenLDAP client libs.
2740 * Allow an existing LDAP machine account to be re-used when
2741 joining an AD domain.
2744 o James Peach <jpeach@sgi.com>
2745 * BUG 889: Change smbd to use pread/pwrite on platforms that
2746 support these calls. Can lead to a significant speed increase.
2749 o Tim Potter <tpot@samba.org>
2750 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
2751 * BUG 924: Fix typo in RW2 torture test.
2754 o Richard Sharpe <rsharpe@samba.org>
2755 * Small fixes to torture.c to cleanup the error handling
2756 and prevent crashes.
2759 o J. Tournier <jerome.tournier@IDEALX.com>
2760 * Small fixes for the smbldap-tool scripts.
2763 o Andrew Tridgell <tridge@samba.org>
2764 * Fix src len check in pull_usc2().
2767 o Jelmer Vernooij <jelmer@samba.org>
2768 * Put functions for generating SQL queries in pdb_sql.c
2769 * Add pgSQL backend (based on patch by Hamish Friedlander)
2770 * BUG 908: Fix -s option to smbcontrol.
2771 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
2772 * Fix for libnss_wins on IRIX platforms.
2773 * Fix swatdir for --with-fhs.
2776 --------------------------------------------------
2778 =============================
2779 Release Notes for Samba 3.0.1
2781 =============================
2783 Some of the more common bugs in 3.0.0 addressed in the release
2786 o Substitution problems with smb.conf variables.
2787 o Errors in return codes which caused some applications
2788 to fail to open files.
2789 o General Protection Faults on Windows 2000/XP clients
2790 using Samba point-n-print features.
2791 o Several miscellaneous crash bugs.
2792 o Access problems when enumerating group mappings are
2793 stored in an LDAP Directory.
2794 o Several common SWAT bugs when writing changes to
2796 o Internal inconsistencies when 'winbind use default
2802 ----------------------
2804 Parameter Name Action
2805 -------------- ------
2806 hide local users Removed
2807 mangled map Deprecated
2808 mangled stack Removed
2809 passwd chat timeout New
2815 o Change the interface for init_unistr2 to not take a length
2816 but a flags field. We were assuming that
2817 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
2818 o Allow d_printf() to handle strings with escaped quotation
2819 marks since the msg file includes the escape character (bug 489).
2820 o Fix bad html table row termination in SWAT wizard code (bug 413).
2821 o Fix to parse the level-2 strings.
2822 o Fix for "valid users = %S" in [homes]. Fix read/write
2824 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
2825 This is the same way AC_CHECK_LIB works (bug 508).
2826 o Testparm output fixes for clarity.
2827 o Fix broken wins hook functionality -- i18n bug (bug 528).
2828 o Take care of condition where DOS and NT error codes must differ.
2829 o Default to using only built-in charsets when a working iconv
2830 implementation cannot be located.
2831 o Wrap internals of sys_setgroups() so the sys_XX() call can
2832 be done unconditionally (bug 550).
2833 o Remove duplicate smbspool link on SWAT's front page (bug 541).
2834 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
2835 --enable-debug=[yes|no] works correctly.
2836 o Allow ^C to interrupt smbpasswd if using our getpass
2837 (e.g. smbpasswd command).
2838 o Support signing only on RPC's (bug 167).
2839 o Correct bug that prevented Excel 2000 clients from opening
2840 files marked as read-only.
2841 o Portability fix bugs 546 - 549).
2842 o Explicitly initialize the value of AR for vendor makes that don't
2843 do this (e.g. HPUX 11). (bug 552).
2844 o More i18n fixes for SWAT (bug 413).
2845 o Change the cwd before the postexec script to ensure that a
2846 umount will succeed.
2847 o Correct double free that caused winbindd to crash when a DC
2848 is rebooted (bug 437).
2849 o Fix incorrect mode sum (bug 562).
2850 o Canonicalize SMB_INFO_ALLOCATION in the same was as
2851 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
2852 o Add script to generate *msg files.
2853 o Add Dutch SWAT translation file.
2854 o Make sure to call get_user_groups() with the full winbindd
2855 name for a user if he/she has one (bug 406).
2856 o Fix up error code returns from Samba4 tester. Ensure invalid
2857 paths are validated the same way.
2858 o Allow Samba3 to pass the Samba4 RAW-READ tests.
2859 o Refuse to configure if --with-expsam=$BACKEND was used but no
2860 libraries were found for $BACKEND.
2861 o Move sysquotas autoconf tests to a separate file.
2862 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
2864 o Make sure that the files that contain the static_init_$subsystem;
2865 macro get recompiled after configure by removing the object
2867 o Ensure canceling a blocking lock returns the correct error
2869 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
2870 o Updated Japanese welcome file in SWAT.
2871 o Fix to nt-time <-> unix-time functions reversible.
2872 o Ensure that winbindd uses the the escaped DN when querying
2874 o Fix portability issues when compiling (bug 505, 550)
2875 o Compile fix for tdbbackup when Samba needs to override
2876 non-C99 compliant implementations of snprintf().
2877 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
2878 o Make sure we break out of samsync loop on error.
2879 o Ensure error code path doesn't free unmalloc()'d memory
2881 o Add configure test for krb5_keytab_entry keyblock vs key
2884 o Modified testparm so that all output so all debug output goes
2885 to stderr, and all file processing goes to stdout.
2886 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
2888 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
2889 we have a devmode before copying a string to the devicename.
2890 o Support mapping REALM.COM\user to a local user account (without
2891 running winbindd) for compatibility with 2.2.x release.
2892 o Ensure we don't use mmap() on blacklisted systems.
2893 o fixed a number of bugs and memory leaks in the AIX
2895 o Call initgroups() in SWAT before becomming the user so that
2896 secondary group permissions can be used when writing to
2898 o Fix signing problems when reverse connecting back to a
2899 client for printer notify
2900 o Fix signing problems caused by a miss-sequence bug.
2901 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
2902 Fixes NEXUS tools running on Win9x clients (bug 64).
2903 o Don't leave the domain field uninitialized in cli_lsa.c if some
2904 SID could not be mapped.
2905 o Fix segfault in mount.cifs helper when there is no options
2906 specified during mount.
2907 o Change the \n after the password prompt to go to tty instead
2908 of stdout (bug 668).
2909 o Stop net -P from prompting for machine account password (bug 451).
2910 o Change in behavior to Not only change the effective uid but also
2911 the real uid when becoming unprivileged.
2912 o Cope with Exchange 5.5 cleartext pop password auth.
2913 o New files for support of initshutdown pipe. Win2k doesn't
2914 respond properly to all requests on the winreg pipe, so we need
2915 to handle this new pipe (bug 534).
2916 o Added more va_copy() checks in configure.in.
2917 o Include fixes for libsmbclient build problems.
2918 o Missing UNIX -> DOS codepage conversion in lanman.c.
2919 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
2920 o Parameterize the listen backlog in smbd and make it larger by
2921 default. A backlog of 5 is way too small these days.
2922 o Check for an invalid fid before dereferencing the fsp pointer
2924 o Remove invalid memory frees and return codes in pdb_ldap.c.
2925 o Prompt for password when invoking --set-auth-user and no
2927 o Bind the nmbd sending socket to the 'socket address'.
2928 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
2929 $LDFLAGS occurs before any library specification (bug 661).
2930 o Fix large number of printf() calls for 64-bit size_t.
2931 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
2932 keyblock in the krb5 structs.
2933 o Remove #include <compat.h> in hopes to avoid problems with
2934 apache header files.
2935 o Correct winbindd build problems on HP-UX 11.
2936 o Lowercase netgroups lookups (bug 703).
2937 o Use the actual size of the buffer in strftime instead of a made
2938 up value which just happens to be less than sizeof(fstring).
2940 o Add ldaplibs to pdbedit link line (bug 651).
2941 o Fix crash bug in smbclient completion (bug 659).
2942 o Fix packet length for browse list reply (bug 771).
2943 o Fix coredump in cli_get_backup_list().
2944 o Make sure that we expand %N (bug 612).
2945 o Allow rpcclient adddriver command to specify printer driver
2947 o Compile tdbdump by default.
2948 o Apply patches to fix iconv detection for FreeBSD.
2949 o Do not allow the 'guest account' to be added to a passdb backend
2950 using smbpasswd or pdbedit (bug 624).
2951 o Save LDFLAGS during iconv detection (bug 57).
2952 o Run krb5 logins through the username map if the winbindd
2953 lookup fails (bug 698).
2954 o Add const for lp_set_name_resolve_order() to avoid compiler
2956 o Add support for the %i macro in smb.conf to stand in for the for
2957 the local IP address to which a client connected.
2958 o Allow winbindd to match local accounts to domain SID when
2959 'winbind trusted domains only = yes' (bug 680).
2960 o Remove code in idmap_ldap that searches the user suffix and group
2961 suffix. It's not needed and provides inconsistent functionality
2962 from the tdb backend.
2963 o Patch to handle munged dial string for Windows 2000 TSE.
2964 Thanks to Gaz de France, Direction de la Recherche, Service
2965 Informatique Métier for their supporting this work by Aurelien
2966 Degrémont <adegremont@idealx.com>.
2967 o Correct the "smbldap_open: cannot access when not root error"
2968 messages when looking up group information (bug 281).
2969 o Skip over the winbind separator when looking up a user.
2970 This fixes the bug that prevented local users from
2971 matching an AD user when not running winbindd (bug 698).
2972 o Fix a problem with configure on *BSD systems. Make sure
2973 we add -liconv etc to LDFLAGS.
2974 o Fix core dump bug when "security = server" and the authentication
2976 o Correct crash bug due to an empty munged dial string.
2977 o Show files locked by a specific user (smbstatus -u 'user')
2979 o Fix bug preventing print jobs from display in the queue
2980 monitor used by Windows NT and later clients (bug 660).
2981 o Fix several reported problems with point-n-print from
2982 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
2983 reply (bug 338, 527 & 643).
2984 o Fix a handful of potential memory leaks in the LDAP code used
2985 by ldapsam[_compat] and the LDAP idmap backend.
2986 o Fix for pdbedit error code returns (bug 763).
2987 o Make sure we only enumerate group mapping entries (not
2988 /etc/group) even when doing local aliases.
2989 o Relax check on the pipe name in a dce/rpc bind response to work
2990 around issues with establishing trusts to a Windows 2003 domain.
2991 o Ensure we mangle names ending in '.' in hash2 mangling method.
2992 o Correct parsing issues with munged dial string.
2993 o Fix bugs in quota support for XFS.
2994 o Add a cleaner method for applications that need to provide
2995 name->SID mappings to do this via NSS rather than having to
2996 know the winbindd pipe protocol.
2997 o Adds a variant of the winbindd_getgroups() call called
2998 winbindd_getusersids() that provides direct SID->SIDs listing of
2999 a users supplementary groups. This is enough to allow non-Samba
3000 applications to do ACL checking.
3001 o Make sure we don't append the 'ldap suffix' when writing out the
3002 'ldap XXX suffix' values in SWAT (bug 328).
3003 o Fix renames across file systems.
3004 o Ensure that items in a list of strings containing whitespace are
3005 written out surrounded by single quotes. This means that both
3006 double and single quotes are now used to surround strings in
3008 o Enable SWAT to correctly determine if winbindd is running (bug
3010 o Include WWW-Authenticate field in 401 response for bad auth
3012 o Add support for NTLM2 (NTLMv2 session security).
3013 o Add support for variable-length session keys.
3014 o More privilege fixes for group enumeration in LDAP (bug 281).
3015 o Use the dns name (or IP) as the originating client name when
3016 using CUPS (bug 467).
3017 o Fix various SMB signing bugs.
3018 o Fix ACL propagation on a DFS root (bug 263).
3019 o Disable NTLM2 for RPC pipes.
3020 o Allow the client to specify the NTLM2 flags got NTLMSSP
3022 o Change the name of the job passed off to cups from "Test Page"
3023 to "smbprn.00000033 Test Page" so that we can get the smb
3024 jobid back. This allow users to delete jobs with cups printing
3025 backend (partial work on bug 770).
3026 o Fix build of winbindd with static pdb modules.
3027 o Retrieve the correct ACL group bits if the file has an ACL
3029 o Implement "net rpc group members": Get members of a domain group
3030 in human-readable format.
3031 o Add MacOSX (Darwin) specific charset module code.
3032 o Use samr_dispinfo(level == 1) for enumerating domain users so we
3033 can include the full name in gecos field (bug 587).
3034 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
3035 o Implement 'net rpc group list [global|local|builtin]*' for a
3036 select listing of the respective user databases.
3037 o Don't automatically set NT status code flag unless client tells
3039 o Add 'net status [sessions|shares] [parseable]'.
3040 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
3042 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
3044 o Fix inverted logic in hosts allow/deny checks caused by
3045 s/strcmp/strequal/ (bug 846).
3046 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
3047 o Fix typo in 'hash' mangling algorithm.
3048 o Support munged dial for ldapsam (bug 800).
3049 o Fix process_incoming_data() to return the number of bytes handled
3050 this call whether we have a complete PDU or not; fixes bug
3051 with multiple PDU request rpc's broken over SMBwriteX calls
3053 o Fix incorrect smb flags2 for connections to pre-NT servers
3054 (causes smbclient to fail to OS2 for example) (bug 821).
3055 o Update version string in smbldap-tools Makefile to 0.8.2.
3056 o Correct a problem with "net rpc vampire" mis-parsing the
3057 alias member info reply.
3058 o Ensure the ${libdir} is created by the installclientlib script.
3059 o Fix detection of Windows 2003 client architecture in the smb.conf
3061 o Ensure that smbd calls the add user script for a missing UNIX
3062 user on kerberos auth call (bug 445).
3063 o Fix bugs in hosts allow/deny when using a mismatched
3064 network/netmask pair.
3065 o Protect alloc_sub_basic() from crashing when the source string
3066 is NULL (partial work on bug 687).
3067 o Fix spinlocks on IRIX.
3068 o Corrected some bad destination paths when running "configure
3070 o Add packaging files for Fedora Core 1.
3071 o Correct bug in SWAT install script for non-english languages.
3072 o Support character set ISO-8859-1 internally (bug 558).
3073 o Fixed more LDAP access errors when looking up group mappings
3075 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
3076 resolution to fail on local files on on domain members
3078 o Fix uninitialized variable in passdb.c.
3079 o Fix formal parameter type in get_static() in nsswitch/wins.c.
3080 o Fix problem mounting directories when mount.cifs is installed
3081 with the setuid bit on.
3082 o Fix bug that prevent --mandir from overriding the defaults
3083 given in the --with-fhs macro.
3084 o Fix bug in in-memory Kerberos keytab detection routines
3089 ######################################################################
3091 The original 3.0.0 release notes follow
3092 =======================================
3093 WHATS NEW IN Samba 3.0.0
3095 =======================================
3101 1) Active Directory support. Samba 3.0 is now able to
3102 join a ADS realm as a member server and authenticate
3103 users using LDAP/Kerberos.
3105 2) Unicode support. Samba will now negotiate UNICODE on the wire
3106 and internally there is now a much better infrastructure for
3107 multi-byte and UNICODE character sets.
3109 3) New authentication system. The internal authentication system
3110 has been almost completely rewritten. Most of the changes are
3111 internal, but the new auth system is also very configurable.
3113 4) New default filename mangling system.
3115 5) A new "net" command has been added. It is somewhat similar to
3116 the "net" command in windows. Eventually we plan to replace
3117 numerous other utilities (such as smbpasswd) with subcommands
3120 6) Samba now negotiates NT-style status32 codes on the wire. This
3121 improves error handling a lot.
3123 7) Better Windows 2000/XP/2003 printing support including publishing
3124 printer attributes in active directory.
3126 8) New loadable module support for passdb backends and character
3129 9) New default dual-daemon winbindd support for better performance.
3131 10) Support for migrating from a Windows NT 4.0 domain to a Samba
3132 domain and maintaining user, group and domain SIDs.
3134 11) Support for establishing trust relationships with Windows NT 4.0
3137 12) Initial support for a distributed Winbind architecture using
3138 an LDAP directory for storing SID to uid/gid mappings.
3140 13) Major updates to the Samba documentation tree.
3142 14) Full support for client and server SMB signing to ensure
3143 compatibility with default Windows 2003 security settings.
3145 15) Improvement of ACL mapping features based on code donated by
3146 Andreas Grünbacher.
3149 Plus lots of other improvements!
3152 Additional Documentation
3153 ------------------------
3155 Please refer to Samba documentation tree (included in the docs/
3156 subdirectory) for extensive explanations of installing, configuring
3157 and maintaining Samba 3.0 servers and clients. It is advised to
3158 begin with the Samba-HOWTO-Collection for overviews and specific
3159 tasks (the current book is up to approximately 400 pages) and to
3160 refer to the various man pages for information on individual options.
3162 We are very glad to be able to include the second edition of
3163 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
3164 (O'Reilly & Associates) in this release. The book is available
3165 on-line at http://samba.org/samba/docs/ and is included with
3166 the Samba Web Administration Tool (SWAT). Thanks to the authors and
3167 publisher for making "Using Samba" under the GNU Free Documentation
3171 ######################################################################
3172 Upgrading from a previous Samba 3.0 beta
3173 ########################################
3175 Beginning with Samba 3.0.0beta3, the RID allocation functions
3176 have been moved into winbindd. Previously these were handled
3177 by each passdb backend. This means that winbindd must be running
3178 to automatically allocate RIDs for users and/or groups. Otherwise,
3179 smbd will use the 2.2 algorithm for generating new RIDs.
3181 If you are using 'passdb backend = tdbsam' with a previous Samba
3182 3.0 beta release (or possibly alpha), it may be necessary to
3183 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
3184 to winbindd_idmap.tdb. To do this:
3186 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
3188 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
3190 3) run: (note that 'tdb>' is the tool's prompt for input)
3192 root# ./tdbtool /usr/local/samba/private/passdb.tdb
3193 tdb> show RID_COUNTER
3197 [000] 0A 52 00 00 .R.
3199 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
3203 If you are using 'passdb backend = ldapsam', it will be necessary to
3204 store idmap entries in the LDAP directory as well (i.e. idmap backend
3205 = ldap). Refer to the 'net idmap' command for more information on
3206 migrating SID<->UNIX id mappings from one backend to another.
3208 If the RID_COUNTER record does not exist, then these instructions are
3209 unneccessary and the new RID_COUNTER record will be correctly generated
3214 ########################
3215 Upgrading from Samba 2.2
3216 ########################
3218 This section is provided to help administrators understand the details
3219 involved with upgrading a Samba 2.2 server to Samba 3.0.
3225 Many of the options to the GNU autoconf script have been modified
3226 in the 3.0 release. The most noticeable are:
3228 * removal of --with-tdbsam (is now included by default; see section
3229 on passdb backends and authentication for more details)
3231 * --with-ldapsam is now on used to provided backward compatible
3232 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
3233 backend and authentication section for more details
3235 * inclusion of non-standard passdb modules may be enabled using
3236 --with-expsam. This includes an XML backend and a mysql backend.
3238 * removal of --with-msdfs (is now enabled by default)
3240 * removal of --with-ssl (no longer supported)
3242 * --with-utmp now defaults to 'yes' on supported systems
3244 * --with-sendfile-support is now enabled by default on supported
3251 This section contains a brief listing of changes to smb.conf options
3252 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
3253 complete descriptions of new or modified parameters.
3255 Removed Parameters (order alphabetically):
3258 * alternate permissions
3261 * code page directory
3263 * domain admin group
3264 * domain guest group
3265 * force unknown acl user
3271 * printer driver file
3272 * printer driver location
3274 * source environment
3282 New Parameters (new parameters have been grouped by function):
3286 * abort shutdown script
3289 User and Group Account Management
3290 ---------------------------------
3292 * add machine script
3293 * add user to group script
3294 * algorithmic rid base
3295 * delete group script
3296 * delete user from group script
3298 * set primary group script
3304 * passwd chat timeout
3308 * client lanman auth
3309 * client NTLMv2 auth
3315 * paranoid server security
3324 * hide special files
3325 * hide unwriteable files
3327 * kernel change notify
3337 * max reported print jobs
3339 UNICODE and Character Sets
3340 --------------------------
3346 SID to uid/gid Mappings
3347 -----------------------
3351 * winbind enable local accounts
3352 * winbind trusted domains only
3353 * template primary group
3354 * enable rid algorithm
3361 * ldap machine suffix
3363 * ldap replication sleep
3366 General Configuration
3367 ---------------------
3371 Modified Parameters (changes in behavior):
3373 * encrypt passwords (enabled by default)
3374 * mangling method (set to 'hash2' by default)
3377 * restrict anonymous (integer value)
3378 * security (new 'ads' value)
3379 * strict locking (enabled by default)
3380 * unix extensions (enabled by default)
3381 * winbind cache time (increased to 5 minutes)
3382 * winbind uid (deprecated in favor of 'idmap uid')
3383 * winbind gid (deprecated in favor of 'idmap gid')
3389 This section contains brief descriptions of any new databases
3390 introduced in Samba 3.0. Please remember to backup your existing
3391 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
3392 upgrade databases as they are opened (if necessary), but downgrading
3393 from 3.0 to 2.2 is an unsupported path.
3395 Name Description Backup?
3396 ---- ----------- -------
3397 account_policy User policy settings yes
3398 gencache Generic caching db no
3399 group_mapping Mapping table from Windows yes
3400 groups/SID to unix groups
3401 winbindd_idmap ID map table from SIDS to UNIX yes
3403 namecache Name resolution cache entries no
3404 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
3405 returned as part of a successful
3406 net_sam_logon request
3407 printing/*.tdb Cached output from 'lpq no
3408 command' created on a per print
3410 registry Read-only samba registry skeleton no
3411 that provides support for exporting
3412 various db tables via the winreg RPCs
3418 The following issues are known changes in behavior between Samba 2.2 and
3419 Samba 3.0 that may affect certain installations of Samba.
3421 1) When operating as a member of a Windows domain, Samba 2.2 would
3422 map any users authenticated by the remote DC to the 'guest account'
3423 if a uid could not be obtained via the getpwnam() call. Samba 3.0
3424 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
3425 current work around to re-establish the 2.2 behavior.
3427 2) When adding machines to a Samba 2.2 controlled domain, the
3428 'add user script' was used to create the UNIX identity of the
3429 machine trust account. Samba 3.0 introduces a new 'add machine
3430 script' that must be specified for this purpose. Samba 3.0 will
3431 not fall back to using the 'add user script' in the absence of
3432 an 'add machine script'
3435 ######################################################################
3436 Passdb Backends and Authentication
3437 ##################################
3439 There have been a few new changes that Samba administrators should be
3440 aware of when moving to Samba 3.0.
3442 1) encrypted passwords have been enabled by default in order to
3443 inter-operate better with out-of-the-box Windows client
3444 installations. This does mean that either (a) a samba account
3445 must be created for each user, or (b) 'encrypt passwords = no'
3446 must be explicitly defined in smb.conf.
3448 2) Inclusion of new 'security = ads' option for integration
3449 with an Active Directory domain using the native Windows
3450 Kerberos 5 and LDAP protocols.
3452 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
3453 type which is neccessary for servers on which the
3454 administrator password has not been changed, or kerberos-enabled
3455 SMB connections to servers that require Kerberos SMB signing.
3456 Besides this one difference, either MIT or Heimdal Kerberos
3457 distributions are usable by Samba 3.0.
3460 Samba 3.0 also includes the possibility of setting up chains
3461 of authentication methods (auth methods) and account storage
3462 backends (passdb backend). Please refer to the smb.conf(5)
3463 man page for details. While both parameters assume sane default
3464 values, it is likely that you will need to understand what the
3465 values actually mean in order to ensure Samba operates correctly.
3467 The recommended passdb backends at this time are
3469 * smbpasswd - 2.2 compatible flat file format
3470 * tdbsam - attribute rich database intended as an smbpasswd
3471 replacement for stand alone servers
3472 * ldapsam - attribute rich account storage and retrieval
3473 backend utilizing an LDAP directory.
3474 * ldapsam_compat - a 2.2 backward compatible LDAP account
3477 Certain functions of the smbpasswd(8) tool have been split between the
3478 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
3479 utility. See the respective man pages for details.
3482 ######################################################################
3486 This section outlines the new features affecting Samba / LDAP
3492 A new object class (sambaSamAccount) has been introduced to replace
3493 the old sambaAccount. This change aids us in the renaming of
3494 attributes to prevent clashes with attributes from other vendors.
3495 There is a conversion script (examples/LDAP/convertSambaAccount) to
3496 modify and LDIF file to the new schema.
3500 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
3501 $ convertSambaAccount --sid=<Domain SID> \
3502 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
3503 --changetype=[modify|add]
3505 The <DOM SID> can be obtained by running 'net getlocalsid
3506 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
3507 the format of the generated LDIF output--either create new entries
3508 or modify existing entries.
3510 The old sambaAccount schema may still be used by specifying the
3511 "ldapsam_compat" passdb backend. However, the sambaAccount and
3512 associated attributes have been moved to the historical section of
3513 the schema file and must be uncommented before use if needed.
3514 The 2.2 object class declaration for a sambaAccount has not changed
3515 in the 3.0 samba.schema file.
3517 Other new object classes and their uses include:
3519 * sambaDomain - domain information used to allocate rids
3520 for users and groups as necessary. The attributes are added
3521 in 'ldap suffix' directory entry automatically if
3522 an idmap uid/gid range has been set and the 'ldapsam'
3523 passdb backend has been selected.
3525 * sambaGroupMapping - an object representing the
3526 relationship between a posixGroup and a Windows
3527 group/SID. These entries are stored in the 'ldap
3528 group suffix' and managed by the 'net groupmap' command.
3530 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
3531 automatically and contains the next available 'idmap uid' and
3534 * sambaIdmapEntry - object storing a mapping between a
3535 SID and a UNIX uid/gid. These objects are created by the
3536 idmap_ldap module as needed.
3538 * sambaSidEntry - object representing a SID alone, as a Structural
3539 class on which to build the sambaIdmapEntry.
3542 New Suffix for Searching
3543 ------------------------
3545 The following new smb.conf parameters have been added to aid in directing
3546 certain LDAP queries when 'passdb backend = ldapsam://...' has been
3549 * ldap suffix - used to search for user and computer accounts
3550 * ldap user suffix - used to store user accounts
3551 * ldap machine suffix - used to store machine trust accounts
3552 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
3553 * ldap idmap suffix - location of sambaIdmapEntry objects
3555 If an 'ldap suffix' is defined, it will be appended to all of the
3556 remaining sub-suffix parameters. In this case, the order of the suffix
3557 listings in smb.conf is important. Always place the 'ldap suffix' first
3560 Due to a limitation in Samba's smb.conf parsing, you should not surround
3561 the DN's with quotation marks.
3567 Samba 3.0 supports an ldap backend for the idmap subsystem. The
3568 following options would inform Samba that the idmap table should be
3569 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
3574 idmap backend = ldap:ldap://onterose/
3575 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
3576 idmap uid = 40000-50000
3577 idmap gid = 40000-50000
3579 This configuration allows winbind installations on multiple servers to
3580 share a uid/gid number space, thus avoiding the interoperability problems
3581 with NFS that were present in Samba 2.2.
3585 ######################################################################
3586 Trust Relationships and a Samba Domain
3587 ######################################
3589 Samba 3.0.0beta2 is able to utilize winbindd as the means of
3590 allocating uids and gids to trusted users and groups. More
3591 information regarding Samba's support for establishing trust
3592 relationships can be found in the Samba-HOWTO-Collection included
3593 in the docs/ directory of this release.
3595 First create your Samba PDC and ensure that everything is
3596 working correctly before moving on the trusts.
3598 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
3599 4.0 domain named WINDOWS:
3601 1) create the trust account for SAMBA in "User Manager for Domains"
3602 2) connect the trust from the Samba domain using
3603 'net rpc trustdom establish GLASS'
3605 To create a trustlationship with SAMBA as the trusted domain:
3607 1) create the initial trust account for GLASS using
3608 'smbpasswd -a -i GLASS'. You may need to create a UNIX
3609 account for GLASS$ prior to this step (depending on your
3610 local configuration).
3611 2) connect the trust from a WINDOWS DC using "User Manager
3614 Now join winbindd on the Samba PDC to the SAMBA domain using
3615 the normal steps for adding a Samba server to an NT4 domain:
3616 (note that smbd & nmbd must be running at this point)
3618 root# net rpc join -U root
3619 Password: <enter root password from smbpasswd file here>
3621 Start winbindd and test the join with 'wbinfo -t'.
3623 Now test the trust relationship by connecting to the SAMBA DC
3624 (e.g. POGO) as a user from the WINDOWS domain:
3626 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
3629 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
3631 $ smbclient //crystal/netlogon -U root -W WINDOWS
3634 ######################################################################
3638 Beginning with Samba3.0.0beta3, winbindd has been given new account
3639 manage functionality equivalent to the 'add user script' family of
3640 smb.conf parameters. The idmap design has also been changed to
3641 centralize control of foreign SID lookups and matching to UNIX
3645 Brief Description of Changes
3646 ----------------------------
3648 1) The sid_to_uid() family of functions (smbd/uid.c) have been
3649 reverted to the 2.2.x design. This means that when resolving a
3650 SID to a UID or similar mapping:
3652 a) First consult winbindd
3653 b) perform a local lookup only if winbindd fails to
3654 return a successful answer
3656 There are some variations to this, but these two rules generally
3659 2) All idmap lookups have been moved into winbindd. This means that
3660 a server must run winbindd (and support NSS) in order to achieve
3661 any mappings of SID to dynamically allocated UNIX ids. This was
3662 a conscious design choice.
3664 3) New functions have been added to winbindd to emulate the 'add user
3665 script' family of smbd functions without requiring that external
3666 scripts be defined. This functionality is controlled by the 'winbind
3667 enable local accounts' smb.conf parameter (enabled by default).
3669 However, this account management functionality is only supported
3670 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
3671 must be shared among multiple Samba servers (such as a PDC and BDCs),
3672 it will be necessary to define your own 'add user script', et. al.
3673 programs that place the accounts/groups in some form of directory
3674 such as NIS or LDAP. This requirement was deemed beyond the scope
3675 of winbind's account management functions. Solutions for
3676 distributing UNIX system information have been deployed and tested
3677 for many years. We saw no need to reinvent the wheel.
3679 4) A member of a Samba controlled domain running winbindd is now able
3680 to map domain users directly onto existing UNIX accounts while still
3681 automatically creating accounts for trusted users and groups. This
3682 behavior is controlled by the 'winbind trusted domains only' smb.conf
3683 parameter (disabled by default to provide 2.2.x winbind behavior).
3685 5) Group mapping support is wrapped in the local_XX_to_XX() functions
3686 in smbd/uid.c. The reason that group mappings are not included
3687 in winbindd is because the purpose of Samba's group map is to
3688 match any Windows SID with an existing UNIX group. These UNIX
3689 groups can be created by winbindd (see next section), but the
3690 SID<->gid mapping is retreived by smbd, not winbindd.
3696 * security = server running winbindd to allocate accounts on demand
3698 * Samba PDC running winbindd to handle the automatic creation of UNIX
3699 identities for machine trust accounts
3701 * Automtically creating UNIX user and groups when migrating a Windows NT
3702 4.0 PDC to a Samba PDC. Winbindd must be running when executing
3703 'net rpc vampire' for this to work.
3706 ######################################################################
3710 * There are several bugs currently logged against the 3.0 codebase
3711 that affect the use of NT 4.0 GUI domain management tools when run
3712 against a Samba 3.0 PDC. This bugs should be released in an early
3715 Please refer to https://bugzilla.samba.org/ for a current list of bugs
3716 filed against the Samba 3.0 codebase.
3719 ######################################################################
3720 Reporting bugs & Development Discussion
3721 #######################################
3723 Please discuss this release on the samba-technical mailing list or by
3724 joining the #samba-technical IRC channel on irc.freenode.net.
3726 If you do report problems then please try to send high quality
3727 feedback. If you don't provide vital information to help us track down
3728 the problem then you will probably be ignored.
3730 A new bugzilla installation has been established to help support the
3731 Samba 3.0 community of users. This server, located at
3732 https://bugzilla.samba.org/, has replaced the older jitterbug server
3733 previously located at http://bugs.samba.org/.