1 ==============================
2 Release Notes for Samba 3.0.11
4 ==============================
6 This is the latest stable release of Samba. This is the version
7 that production Samba servers should be running for all current
8 bug-fixes. Please read the following important changes in this
11 Common bugs fixed in 3.0.11 include:
13 o Crash in smbd when using CUPS printing.
14 o Parsing error of other SIDs included in the user_info_3
15 structure returned from domain controllers.
16 o Inefficiencies when searching non-AD LDAP directories.
17 o Failure to expand variables in user domain attributes
18 in tdbsam and ldapsam.
20 o Failure to retrieve certain attribute when migrating from
21 a Windows DC to a Samba DC via 'net rpc vampire'.
22 o Numerous printing bugs bugs including memory
23 bloating on large/busy print servers.
24 o Compatibility issues with Exchange 5.5 SP4.
27 Additional features introduced in Samba 3.0.11:
29 o Winbindd performance improvements.
30 o More 'net rpc vampire' functionality.
31 o Support for the Windows privilege model to assign rights
33 o New administrative options to the 'net rpc' command.
39 If "ldap user suffix" or "ldap machine suffix" are defined in
40 smb.conf, all user-accounts must reside below the user suffix,
41 and all machine and inter-domain trust-accounts must be located
42 below the machine suffix. Previous Samba releases would fall
43 back to searching the 'ldap suffix' in some cases.
49 Samba 3.0.11pre2 supports the following assignable rights
51 SeMachineAccountPrivilege Add machines to domain
52 SePrintOperatorPrivilege Manage printers
53 SeAddUsersPrivilege Add users and groups to the domain
54 SeRemoteShutdownPrivilege Force shutdown from a remote system
55 SeDiskOperatorPrivilege Manage disk shares
57 These rights can be assigned to arbitrary users or groups
58 via the 'net rpc rights grant/revoke' command. More details
59 of Samba's privilege implementation can be found in the
60 Samba-HOWTO-Collection.
63 ######################################################################
67 Changes since 3.0.11rc1
68 -----------------------
72 o Timur Bakeyev <timur@com.bat.ru>
73 * BUG 2263: Guard base64_encode_data_blob() against empty blobs.
75 o Gerald (Jerry) Carter <jerry@samba.org>
76 * BUG 2262: Add support in configure.in for *freebsd6*.
77 * BUG 2266: Portability fixes for queota code on FreeBSD4.
78 * BUG 2264: Remove shutdown and abortshutdown commands from
79 rpcclient in favor of using the same functions in 'net'.
80 * BUG 2295: Prevent mbd from returning an emptry servername
81 in certain lanman api calls.
82 * BUG 2290: Fix autogen.sh script in examples (based on original
83 patch from Lars Mueller).
84 * Fix bug enumerating domain trusts in security = ads.
85 * Fix segv in rpcclient's dsenumdomtrusts.
86 * Fix bug in expansion of %U and %G in included filesnames.
87 * BUG 2291: Restrict creation of server trust and domain trust
88 accounts to members of the "Domain Admins" group.
91 o Guenther Deschner <gd@samba.org>
92 * BUG 2291: Call the 'add machine script' for server trust and
93 domain trust accounts as well as workstation accounts.
96 o Levente Farkas <lfarkas@lfarkas.org>
97 * BUG 2299: Better logrotate scripts for RedHat and Fedora
101 o Deryck Hodge <deryck@samba.org>
102 * Add -P (--password-only-menu) to SWAT for displaying only the
103 password change page to non-root users.
106 o Jason Mader <jason@ncac.gwu.edu>
107 * BUG 2113, 2289: Remove dead code.
110 o Tim Potter <tpot@samba.org>
111 * Compile fixes after new setsampwent() API.
114 o Richard Renard <rrenard@idealx.com>
115 * Update Netscape DS 5.2 LDAP schema.
118 o Simo Sorce <idra@samba.org>
119 * Log a warning in testparm if a print command is defined for
120 a print service using 'printing = cups'.
129 Parameter Name Action
130 -------------- ------
131 afs token lifetime New
132 enable privileges New
133 ldap password sync Alias
134 min password length Deprecated
135 winbind enable local accounts Deprecated
140 o Jeremy Allison <jra@samba.org>
141 * Extend vfs to add seekdir/telldir/rewinddir.
143 * Fix bugs when handling secondary trans2 requests.
144 * Implementation of get posix acls in UNIX extensions.
145 * Added set posix acl functionality into the UNIX extensions code.
146 * Updated config.guess/config.sub .
147 * Fix error reply when 'follow symlinks = no'.
148 * BUG 1061, 2045: Only set mtime from pending_modtime if it's
150 * Fixes for LARGE_READX support.
151 * Fix the problem we get on Linux where sendfile fails, but we've
152 already sent the header using send().
153 * BUG 2081: Ensure SE_DESC_DACL_PROTECTED is set if 'map acl
155 * BUG 2088: Ensure inherit permissions is only applied on a new
156 file, not an existing one.
157 * Don't go fishing for the krb5 authorization data unless we know
159 * Fixes for libsmbclient to ensure that interrupted system calls
160 are restarted minus the already expired portion of the timeout
161 (based on work by Derrell Lipman).
162 * More Unicode string parsing fixes.
163 * Convert the winreg pipe to use WERROR returns.
164 * Make all LDAP timeouts consistent (input from Joe Meadows
165 <jameadows@webopolis.com>).
166 * BUG 2231: Remove double "\\" from client findfirst.
167 * BUG 2238: Fix memory leak in shadow copy vfs.
168 * Return correct DOS/NT error code on transact named pipe on
170 * BUG 2211: Fix security descriptor parsing bug (based on work by
171 Mrinal Kalakrishnan <mail@mrinal.net>).
172 * BUG 2270: Fix memory leaks in cups printing backend support
173 (based on work by Lars Mueller).
174 * BUG 2255: Fix debug level in kerberos error messages.
175 * BUG 2110: Ensure we convert to ucs2 correctly after the
177 * Make strict locking an enum. Auto means use oplock optimization.
178 * Fix client & server to allow 127k READX calls.
179 * More *alloc fixes (includes additional fixes by Albert Chin.
180 * Catch sendfile errors correctly and return the correct values
181 we want the caller to return.
182 * BUG 2092: Prevent auto-anonymous logins via libsmbclient
183 for better use by desktop environments such as GNOME.
184 * Ensure we can't remove a level II oplock without having the
185 shared memory area locked.
188 o Timur Bakeyev <timur@com.bat.ru>
189 * BUG 2100: change the way we check for errors after a dlopen().
192 o Andrew Bartlett <abartlet@samba.org>
193 * Clarify error message when 'lanman auth = no'.
194 * Remove the unnecessary UTF-8 conversion calls in the calls to
195 auth_winbind from smbd.
196 * Don't store the auth-user credentials with the cli_state* as
197 this can cause the schannel setup to fail when the auth-user
198 domain is not our primary domain.
201 o Grigory Batalov <bga@altlinux.org>
202 * Fix encoding while receiving of a message which was actually
203 sent using STR_ASCII.
206 o Daniel Beschorner <db@unit-netz.de>
207 * BUG 603: Correct access mask check for _samr_lookup_domain()
208 to work with Windows RAS server
211 o Jerome Borsboom <j.borsboom@erasmusmc.nl>
212 * Fix missing printer_tdb reference decrement.
215 o Gerald (Jerry) Carter <jerry@samba.org>
216 * BUG 2073: fall back to smb_name if current_user_info is not
217 available in lp_file_list_changed().
218 * Fixes the spurious 'register_message_flags: tdb fetch failed'
220 * Don't run the background LPQ daemon when we are running in
222 * prevent the background LPQ daemon from updating the print queue
223 cache just because multiple smbd processes sent a message that
225 * consolidate printer searches to use find_service rather than
227 * BUG 2091: don't remove statically defined printers in
228 remove_stale_printers().
229 * Fix logic error in add_a_form() that only compared N characters
230 instead of the entire form name.
231 * BUG 2107: fix memory bloating caused by large numbers of
232 print_queue_updates() requests sent via messages.tdb.
233 * Check the setprinter(3) based on the access permissions on
234 the handle and avoid the call to print_access_check().
235 * Re-instantiate previous semantics for calling init_unistr2()
236 with a NULL source buffer.
237 * Support Windows privilege model for assigning rights
238 to specific SIDs. Based on work by Simo Sorce in the trunk
239 svn branch. This feature is controlled by the 'enable
240 privileges = [yes|no]' smb.conf(5) option.
241 * Add some smb.conf scripts for add/delete/change shares and
242 deleting cups printers.
243 * Expand variables in the profile path, logon home and logon script
244 values when using either tdbsam or ldapsam.
245 * Add Domain Admins (Full Control) to the default printer security
246 descriptor if we are a DC.
247 * RedHat and Fedora Packaging fixes for perl dependencies.
248 * Remove unused schema items from OpenLDAP schema file.
249 * Remove duplicate enumeration of "Windows x86" architecture
250 when listing printer drivers via rpcclient.
251 * Fail set_privileges() if 'enable privileges = no' to prevent
253 * Fix segfault in cups_queue_get().
254 * Tighten restrictions on changing user passwords when
255 the connected user possesses the SeMachineAccountPrivilege.
256 * Ensure we set NETBIOSNAME.domainname for the long machine name
257 when publishing printers in AD (based on input from Rob Foehl).
258 * Mark 'winbind enable local accounts' as deprecated.
259 * Mark testprns tool as deprecated.
260 * Allow root to grant/revoke privilege assignments.
261 * Correct interaction between user rights and se_access_check() on
263 * BUG 2286: Fix typo OpenLDAP schema file for sambaConfig object
267 o Nadav Danieli <nadavd@exanet.com>
268 * Short circuit some is_locked() tests if we are oplocked.
271 o Guenther Deschner <gd@samba.org>
272 * Allow 'localhost' as a valid server name in the smbd for the
274 * Fix KRB5_SETPW-defines, no change in behavior (Thanks to Luke
275 Mewburn for the input).
276 * BUG 2059: Add additional checks needed after logic change to the
277 HAVE_WRFILE_KEYTAB detection test.
278 * BUG 1076: Fix interaction with Exchange 5.5. SP4 and a
279 Samba DC. Allow us to lookup at least our own SID.
280 * More fixes to have proper German in swat (Thanks to Reiner
281 Klaproth and Björn Jacke.
282 * BUG 404, 2076: Allow to set OWNER- and GROUP-entries while
283 setting security descriptors with smbcacls and using with
285 * Include the munged_dial, bad_password_count, logon_count, and
286 logon_hours attributes when running 'net rpc vampire'.
287 * Fix segfault in idmap_rid.
288 * When winbindd is operating in the multi-mapping mode of
289 idmap_rid, allow BUILTIN domain-mapping.
290 * Display infolevel 12 in query_dom_info in rpcclient.
291 * Fix bug in winbindd's lowercasing of usernames.
292 * Allow -v or -l for displaying verbose groupmap-listing
293 as well as "verbose".
294 * Backport Samba4 SAM_DELTA_DOMAIN_INFO for use in 'net rpc
296 * Close LDAP-Connection before retrying to open a new connection
298 * Marking "min password length" as depreciated.
299 * Implement SAMR query_dom_info-call info-level 8 server- and
300 client-side, based on samba4-idl.
301 * Allow rpcclient to define a port to use when connecting
303 * Allow Account Lockout with Lockout Duration "forever" (until
304 admin unlocks) to be set and displayed in User Manager.
305 * Allow to set acb_mask in rpcclient's enumdomusers.
306 * Add more generic rootDSE inspection function to check
307 for given controls or extensions and remember these on a
309 * Improve LDAP search efficiency by passing the acb_mask to
311 * Fixes for ldapsam_enum_group_memberships().
312 * Add createdomgroup to rpcclient.
313 * Add "net rpc user RENAME"-command.
314 * Display sam_user_info_7 in rpcclient.
315 * Make multi-domain-mode in idmap_rid accessible from outside
316 (can be compiled with -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS).
317 * When vampiring account policy AP_LOCK_ACCOUNT_DURATION honor
318 "Lockout Duration: Forever".
319 * Fix configure.in tests using KRB5_CONFIG variable and krb5-
321 * Require assignment of Administrator SID in the passdb
322 backend. Fall back to the default name of 'Administrator' if
323 the lookup fails rather than using the first name in the
324 default 'admin users' list.
325 * Enhance LDAP failure debug messages.
328 o Jay Fenlason <fenlason@redhat.com>
329 * Fix crash in 'net join' due to calling free on
333 o Rob Foehl <rwf@loonybin.net>.
335 * Try modifying printer published attributes before adding it a
337 * Solaris packaging fixes.
338 * Don't force the cups printer-make-and-model tag as the comment
339 for autoloaded printers.
340 * Implement caching of names from printcap to support a true
341 'printcap cache time'.
344 o Johann Hanne <jhml@gmx.net>
345 * BUG 2038: Only fail winbindd_getgroups() if all lookups fail.
348 o Jeff Hardy <hardyjm@potsdam.edu>
349 * Example script for 'add print command' when using CUPS.
352 o David Hu <david.hu@hp.com>
353 * Copy structure from print_queue_update() message rather than
354 referencing it. Fixes seg fault on HP-UX.
357 o Buck Huppmann <buckh@pobox.com>
358 * BUG 2186: Don't free uninitialized credentials.
359 * BUG 2189: Add the HOST/fqdn servicePrincipalName even when
360 dnsDomainName != realm.
363 o Björn Jacke <bjoern@j3e.de>
364 * BUG 2040: Ensure the locale is reset to C to get ASCII-
365 compatible toupper/lower functions.
368 o William Jojo <jojowil@hvcc.edu>
369 * Fix HPUX sendfile and add configure.in tests and code for
371 * AIX 5.3 compile fixes.
374 o Volker Lendecke <vl@samba.org>
375 * Optimize anonymous session setups by workstations in a
377 * Reimplment the QueryUserAliases() server RPC reply.
378 * Re-add the getpwnam-cache for performance.
379 * Cache the result of a pdb_getsampwnam for later SID lookup
381 * Unify the means of localtaing a user's global groups on a
383 * Fix bug when serving the 'Start Menu' in a roaming user profile..
384 * Map more pre-defined NT security descriptors to AFS acls.
385 * Add timeout to AD search requests.
386 * If a connection to a DC is requested (in winbindd), open
387 connections simultaneously to all DCs found.
389 * Fix logic error in handling of 'printcap name' parameter.
390 * Prevent winbindd from SPAM'ing the log files with 'user root
392 * Backport samr_DomInfo2 IDL specification from Samba 4.
393 * Implement smbstatus -n, don't lookup users and groups.
394 * Implement simple mapping that maps the space to another character
395 defined by afsacl:space.
396 * Add support for 'net idmap delete <idmap-file> <SID>'.
397 * Add new parameter 'afs token lifetime' tells the AFS client
398 when to throw away a token (patch from kllin@it.su.se).
399 * Initial work to allow support for multiple pipe opens on a
401 * Ensure that we still retrieve the netbios name of any DC
402 listed as a 'password server' to work around cases where the
403 DC was defined using an IP address or fqdn.
404 * Fix memleak in winbindd connection code.
405 * Fix cli_samr_queryuseraliases.
406 * Allow wbinfo --user-sids to expand expand domain local groups.
407 * Allow 'rpcclient -c enumtrust' to enumerate more than 10 trusts.
408 * Fix parsing of other_sids in net_user_info3.
409 * Correct bad failure logic when user was not a member of any
413 o Jim McDonough <jmcd@us.ibm.com>
414 * BUG 1952: Try INITSHUTDOWN pipe first, used by newer
415 clients. If it fails, fall back to WINREG.
416 * BUG 1770: Remove READ_ATTRIBUTES from GENERIC_EXECUTE.
417 * BUG 2198: Set password last change time when running 'net rpc
419 * Add "refuse machine password change" policy field.
422 o Luke Mewburn <lukem@NetBSD.org>
423 * BUG 2150: shmget() - Use POSIX definitions instead of non-
427 o Stefan Metzmacher <metze@samba.org>
431 o Buchan Milne <bgmilne@mandrake.org>
432 * Mandrake packaging fixes.
435 o Lars Mueller <lmuelle@suse.de>
436 * Fix build of libsmbclient on x86_64.
437 * BUG 2013: Fix testsuite build issues when libsmbclient.so
438 is installed in a non-default location.
439 * BUG 2050: Calculate max_fd for select correctly.
440 * Fix inverted logic heck for HAVE_WRFILE_KEYTAB in autoconf
444 o Jason Mader <jason@ncac.gwu.edu>
445 * BUG 2069: Remove unused variables.
446 * BUG 2075: Remove dead code paths.
447 * BUG 2083: Fix compiler warnings caused by bad type casts.
450 o James Peach <jpeach@sgi.com>
451 * Fix rewinddir -> rewind_dir when using VFS macros.
454 o Gavrie Philipson <gavrie@disksites.com>
455 * BUG 1838: Remove stale printers imeeddiately when
456 processing a SIGHUP and during smb.conf reload.
459 o Tim Potter <tpot@samba.org>
460 * BUG 2080: Fix duplicate call to pdb_get_acct_desc().
461 * BUG 2168: Fix cast in SMB_XMALLOC_ARRAY.
462 * Change the license for the winbindd external interface
464 * HP-UX compile fixes.
467 o Simo Sorce <idra@samba.org>
468 * Backport pdbedit changes from trunk.
469 * Allows the add/change share command to create the shared
470 directory directory on disk.
472 o Jelmer Vernooij <jelmer@samba.org>
473 * Bug fixes for pdb_{xml,pqsql,xml}
474 * Fixes for pdb_mysql.
477 o Andrew Tridgell <tridge@samba.org>
478 * Bring Samba3 into line with the Samba4 password change code.
481 o Shiro Yamada <shiro@miraclelinux.com>
482 * BUG 2190: Force SWAT to display parameters in unix charset and
486 Release Notes for older release follow:
488 --------------------------------------------------
489 ==============================
490 Release Notes for Samba 3.0.10
492 ==============================
494 Common bugs fixed in 3.0.10 include:
496 o Fix for security issues described in CAN-2004-1154.
507 o Jeremy Allison <jra@samba.org>
508 * Added checks surrounding all *alloc() calls to fix
510 * Fix long standing memory size bug in bitmap_allocate().
511 * Remove bogus error check in deferred open file serving
515 o Thomas Bork <tombork@web.de>
516 * Fix autoconf script on platforms using a version of GNU ld
517 that does not include a date stamp in the output of --version.
520 o Luke Mewburn <lukem@NetBSD.org>
521 * Fix the swat install script to deal with the new image
522 destination directory used by the docs.
526 --------------------------------------------------
528 =============================
529 Release Notes for Samba 3.0.9
531 =============================
533 Common bugs fixed in 3.0.9 include:
535 o Problem updating roaming user profiles.
536 o Crash in smbd when printing from a Windows 9x client.
537 o Unresolved symbols in libsmbclient which caused
538 applications such as KDE's konqueror to fail when
539 accessing smb:// URLs.
549 o Jeremy Allison <jra@samba.org>
550 * Correctly detect errno for no acl/ea support.
551 * BUG 2036: Fix seg fault in 'net ads join'.
554 o Gerald (Jerry) Carter <jerry@samba.org>
555 * Solaris packaging fixes.
556 * Fix seg fault in lanman printing code.
557 * BUG 2017: fix testparm reporting for the passwd program
559 * Fix output of smbstatus to match the man page.
560 * BUG 2027: fix conflict with declaration MD5_CTX in system
562 * 2028: Avoid false error messages when copying a long
563 printer name to the device mode.
566 o Guenther Deschner <gd@samba.org>
567 * Allow deldriverex in rpcclient to delete drivers for a
568 specific architecture and a specific version.
569 * Fix a couple of rpcclient spoolss commands (setprinter,
570 setprintername, getdriver) w.r.t to printer-naming scheme.
571 Allow 'localhost' in the server string for certain server-side
573 * BUG 2015: Do not fail on setting file attributes with
577 o Michel Gravey <michel.gravey@optogone.com>
578 * Fix build when using gcc 3.0.
581 o Volker Lendecke <vl@samba.org>
582 * Fix tdb open logic when checking our local_pid after
586 o Jim McDonough <jmcd@us.ibm.com>
587 * BUG 1932: Fix crash in 'net getlocalsid' when run as
591 o Luke Mewburn <lukem@NetBSD.org>
592 BUG 1661: Fix KRB5_SETPW-defines
595 o Buchan Milne <bgmilne@mandrake.org>
596 * BUG 2023: Mandrake packaging fixes for building 3.0.9.
599 o Lars Müller <lmuelle@suse.de>
600 * BUG 2013: Fix unresolved symbols in libsmbclient.so.
603 o Martin Zielinski <mz@seh.de>
604 * Add DeletePrinterDriverEx() functionality to rpcclient.
607 --------------------------------------------------
609 =============================
610 Release Notes for Samba 3.0.8
612 =============================
614 Common bugs fixed in 3.0.8 include:
616 o Compile fixes for HP-UX
617 o Fixes for the printer publishing code used when joined to
619 o Incompatibilities with file system quotas.
620 o Several bugs in the spoolss printing code and print system
622 o Inconsistencies in the username map functionality when
623 configured on domain member servers.
624 o Various compile warnings and errors on various platforms.
625 o Fixes for kerberos interoperability with Windows 200x
626 domains when using DES keys.
627 o Fix for CAN-2004-0930 -- smbd remote DoS vulnerability.
628 o Fix for CAN-2004-0882 -- possible buffer overrun in smbd.
631 New features included in the 3.0.8 release are:
633 o New migration functionality added the the net tool
634 for files/directories, printers, and shares.
635 o New experimental idmap backend for assigning uids/gids
636 directly based on the user/group RID when acting as a
637 member of single domain without any trusts.
638 o Additional printer migration support for XP/2003 platforms.
641 Change in Winbindd Behavior
642 ---------------------------
644 All usernames returned by winbindd are now converted to lower
645 case for better consistency. This means any winbind installation
646 relying on the winbind username will need to rename existing
647 directories and/or files based on the username (%u and %U) to lower
648 case (e.g. mv $name `echo $name | tr '[A-Z]' '[a-z]'`). This may
649 include mail spool files, home directories, valid user lines in
653 Change in Username Map
654 ----------------------
656 Previous Samba releases would only support reading the fully qualified
657 username (e.g. DOMAIN\user) from the username map when performing a
658 kerberos login from a client. However, when looking up a map
659 entry for a user authenticated by NTLM[SSP], only the login name would be
660 used for matches. This resulted in inconsistent behavior sometimes
661 even on the same server.
663 Samba 3.0.8 obeys the following rules when applying the username
666 * When performing local authentication, the username map is
667 applied to the login name before attempting to authenticate
669 * When relying upon a external domain controller for validating
670 authentication requests, smbd will apply the username map
671 to the fully qualified username (i.e. DOMAIN\user) only
672 after the user has been successfully authenticated.
675 ######################################################################
684 Parameter Name Action
685 -------------- ------
686 force printername New
687 sendfile disabled by default
693 o Jeremy Allison <jra@samba.org>
694 * Ensure extended security bit is on only if we negotiated
696 * Simplify statcache to use an in-memory tdb.
697 * If you're selecting a hash algorithm for tdb, you need
698 to do it at open time.
699 * Removed old dir caching code - not being used now we
700 have the statcache anyway.
701 * Simplify the mangle hash code to use an in-memory tdb.
702 * Merge iconv changes from Samba 4 branch.
703 * Fix parsing of names ending in dot and a few other error
705 * BUG 1667: Smbpasswd file could be left locked on some
707 * Fixes for smbclient tar functionality.
708 * BUG 1743: Fix logic bug the deferred open code.
709 * Don't try to set security descriptors on shares where
710 this has been turned off.
711 * Return correct error codes on old SEARCH call.
712 * Ensure we set errno = E2BIG when we overflow in the
713 fast-path character conversion code.
714 * Fix the roundup problem (returning 1mb roundup) for
716 * Added 'stat' command to smbclient to exercise the
717 UNIX_FILE_BASIC info level.
718 * Fix bug where we could incorrectly set sparse attribute.
719 * Fix incorrect locks/unlocks in tdb_lockkeys()/tdb_unlockkeys()
720 (reported by Taj Khattra <taj.khattra@gmail.com>).
721 * Remove locked keys tdb code.
722 * BUG 1886: Prevent delete on close being set for readonly files
723 (and return the correct error code).
724 * Ensure we pass most of the new lock tests except for the cancel
725 lock which is yet to be added (merged from Samba 4 branch).
726 * BUG 1947: Fix incorrect use of getpwnam() etc. interface.
727 * BUG 1956: Ensure errno is saved and restored consistently on a
729 * BUG 1651: Adapted patch from Nalin Dahyabhai for ensuring
730 that all of the appropriate service principal names are set
731 upon joining an AD domain.
732 * Fix the correct use of resume name in the trans2 code.
733 * BUG 1717: Adapted patch from Nalin Dahyabhai to detect the
734 correct salt used when generated the DES key after joining an
736 * Enhanced krb5 detection routines in the autoconf scripts.
739 o Andrew Bartlett <abartlet@samba.org>
740 * Avoid changing the machine account password in the passdb
741 backend, when it has 'already been changed'. This occurs
742 in situations where the secure channel between the workstation
743 and the DC breaks down, such as occurred in the MS04-11
745 * Fix utility name in error message in ntlm_auth.
746 * Fix NTLMv2 for use with pam_winbind.
747 * Remove conversion to and from UTF8 on the winbind pipe.
748 * Allow 'require_membership_of' and 'require-membership-of'.
749 * Fix the error code for 'you didn't specify a domain' in
751 * Use sys_getgroups() rather than scanning all groups
752 when generating SAMR replies.
755 o Igor Belyi <sambauser@katehok.ac93.org>
756 * Ensure pdb user is deleted first before deleting UNIX
757 user (LDAP backend needs this ordering).
760 o Cornelio Bondad Jr <Corny.Bondad@hp.com>
761 * Fix core dump in 'net rpc vampire'.
764 o Vince Brimhall <vbrimhall@novell.com>
765 * Make ldapsam_compat robust against NULL attributes.
768 o Gerald Carter <jerry@samba.org>
769 * Don't limit the number of groups returned by winbindd_getgroups()
771 * BUG 1519: Match Windows 2000 behavior when opening a
772 printer using a servername in the form of an IP address or
774 * BUG 1907: remove extra slashes from the printer name in
775 getprinterdriverdir_1().
776 * Fix standard_sub_snum() to use the current user's gid.
777 * Fix background queue update bug (based on Volker's initial work
779 * Add 'force printername' service parameter for people that want
780 to enforce printername == sharename for spoolss printing.
781 * Ensure consistent usage of the username map. Use the fully
782 qualified DOMAIN\user format for 'security = domain|ads' and
783 apply after authentication has succeeded.
784 * Cosmetic fix for getent output -- lowercase the username only
785 and not the complete domain\username string.
786 * Packaging fixes for Solaris, Redhat, & Fedora.
789 o Sean Chandler <sean.chandler@verizon.net>
790 * Fix memlieak in cliconnect.c.
793 o Darren Chew <darrenc@vicscouts.asn.au>
794 * Solaris packaging fixes.
797 o Nalin Dahyabhai <nalin@redhat.com>
798 * SMB signing fix for 56-bit DES session keys.
801 o Guenther Deschner <gd@samba.org>
802 * add IA64 to the architecture table of printer-drivers.
803 * Add file/share/printer migration functionality to
805 * Show correct help for net groupmap commands.
806 * Fix deadlock loop in winbind's required_membership_sid
808 * Bring the same level of "required_membership"-functionality
809 that ntlm_auth uses, to pam_winbindd as well.
810 * Prevent "net lookup kdc" from seg-faulting when
811 using our own implementation of krb5_lookup_kdc with
813 * Adding getprinter level 7 to rpcclient.
814 * Support migrating printers|shares|files from Server A
815 to Server B while running the net-command on client C.
816 * Fixed krb5_krbhost_get_addrinfo()-parameters and make
817 failure of this call non-critical (Thanks to Love @ Heimdal
818 for the explanation and patch).
819 * Fix typos in net's usage-output.
820 * Fix the paranoia-check to ensure the ldap-attribute and the
821 smb.conf-parameter for samba's "algorithmic rid base" in ldapsam
823 * Fix several bugs in the _samr_query_useraliases() rpc reply.
824 * Check correct string length when verifying password-policies
825 and using extended characters (Thanks to Uwe Morgenroth from CC
826 Compunet and Volker).
827 * Make 'password history'-behavior in ldapsam more consistent.
828 * Adding "Windows x64" as architecture string and driverdir "x64"
829 for the 64bit AMD platform.
830 * BUG 1343: Readd WKGUID-binding to match the correct default-
831 locations of new User-, Group- and Machine-Accounts in Active
832 Directory (this got lost during the last trunk-merge).
833 * Fix printer-migration w.r.t. to new naming-convention for
835 * Allow to migrate win2k3/xp-drivers as well.
836 * Add client-side support of triggering ads printer publishing
837 over msrpc setprinter calls inside the net-tool.
838 * Add the idmap_rid module (written in conjunction with
839 Sumit Bose <sbose@suse.de>).
840 * BUG 1661: Fix build with recent heimdal releases.
841 * Prevent idmap_rid from making unnecessary calls to domain
842 controllers for trusted domains.
845 o Arthur van Dongen <avdongen@xs4all.nl>
846 * Fix typos in pam_winbind log messages and SuSE
850 o Rob Foehl <rwf@loonybin.net>
851 * Typo fixes for log messages in printer publishing code.
852 * Fix memory leak in printer publishing code.
853 * Ensure print_backend_init() only gets called once.
854 * Have smbd check the published status of all printers
856 * Cleanup up the XXX_a_printer() API for consistency.
857 * Refactored the printer publishing code and include better
861 o Steve French <sfrench@us.ibm.com>
862 * Fix IP address override in mount.cifs mount helper and clean
863 up warning messages from the sparse tool and expand syntax help.
864 * Strip guest mount option off before sending to kernel mount
865 routine to avoid logging spurious message.
868 o Satoh Fumiyasu <fumiya@samba.gr.jp>
869 * BUG 1732: Limit share names returned by RAP based on windows
870 character width, not unix character width.
871 * BUG 1498: Ensure that acl entries are stored in the correct
875 o Brett Funderburg <brett@deepfile.com>
876 * Pass create options parameter to nt_create_andx() function
877 from the python bindings.
878 * BUG 1864: Add sd->type field to security descriptor Python
880 * Return an error if a Netapp filer returns NT_STATUS_ACCESS_DENIED
881 when trying to return the security descriptor for a file.
882 * BUG 1884: Fixes for the Python bindings to use the value
883 of the desired_access filed passed into the lsa_open_policy()
887 o Michael Gravey <michel.gravey@optogone.com>
888 * BUG 1776: Fix warnings when building modules caused by
889 certain versions of GNU ld not using the the default
890 --allow-shlib-undefined flag.
893 o Chris Hertel <crh@samba.org>
894 * Fix logic bug in splay tree data structure when finding
896 * Fix bug where an invalid MAC address would be printed by
897 a node status lookup from nmblookup.
900 o Uli Iske <iske@elkb.de>
901 * Update the DNS/eDirectory LDAP schema file.
904 o Björn Jacke <bjacke@sernet.de>
905 * BUG 1766: Unify charset-handling in Content-Type:-headers to
906 UTF-8. Reformat msgstr in msg-files to UTF-8.
907 * Do not use display charset for swat output.
908 * Convert the share names correctly from unix encoding to web
909 encoding and vice versa.
910 * Convert files from status page from unix charset to UTF-8.
913 o Guenter Kukkukk <guenter.kukkukk@kukkukk.com>
914 * BUG 1590: Fix for talking to OS/2 clients (max_mux ignored).
917 o Tom Lackemann <cessnatomny@yahoo.com>
918 * BUG 1954: Fix memory leak in posix acl code.
921 o Volker Lendecke <vl@samba.org>
922 * Robustnss fix for winbindd when sending multiple requests
923 at a high rate for a slow operation.
924 * Solve the problem of user sids ending up with gid's
926 * Use sys_fork instead of fork for the dual daemon so that
927 we get the correct debug pid in the logfiles.
928 * Based on patch from jmcd, implement special lists for the LDAP
929 user attributes to delete.
930 * Fix creation of aliases via usrmgr. Winbind was too strict
931 checking the type of sids.
932 * Lowercase all usernames returned by winbind.
933 * BUG 1545, 1823: Only issue the ldap extended password change
934 operation if the ldap server supports it. Also ignore object
935 class violation errors from the extended operation.
936 * Optimization for 'idmap backend = ldap': When asking sid2id
937 for the wrong type, don't ask ldap when we have the opposite mapping
939 * Fix ldapsam_compat homeDrive.
940 * Add usersidlist and allowedusers subcommands to the net tool
941 in order to support scanning a file server's share and list
942 all users who have permission to connect there.
943 * Allow for multiple DC's to be named as #1c names in lmhosts.
945 * Fix checks for the local pid of an smbd process after
949 o Herb Lewis <herb@samba.org>
950 * Added tdbtool to be built by default.
953 o Love <lha@stacken.kth.se>
954 * BUG 1955: Inconsistent error return.
957 o Sorin Manolache <sorinm@gmail.com>
961 o Jim McDonough <jmcd@us.ibm.com>
962 * Allow 'net ads lookup' to rely on command line arguments
963 if contacting an ADS server fails; utilize cldap for lookups.
964 * Fixup formatting errors in TDB_LOG calls; add printf attribute
965 support to tdb log functions.
968 o Bill McGonigle <bill+samba@bfccomputing.com>
969 * BUG 1926: Type in debug message.
973 * BUG 1822: Add -D_REENTRANT to CPPFLAGS and -lthread to LDFLAGS
977 o Luke Mewburn <lukem@NetBSD.org>
978 * BUG 1782: Prevent testparm from displaying parameter synonyms.
981 o Stefan Metzmacher <metze@samba.org>
982 * Fix crash in smbcquotas and smbcacls caused by setup_logging().
983 * Fix client quota support.
984 * Fix opening of system quota file.
987 o Lars Mueller <lmuelle@suse.de>
988 * Small fixes for autogen.sh to deal with version detection
989 of autoconf and autoheader; fixes for examples using
990 libtool to adhere to stricter syntax of newer version.
993 o Henrik Nordstrom <hno@squid-cache.org>
994 * Allow winbindd to return the correct number of groups
995 when the groups array must be enlarged.
998 o Narayana Pattipati <narayana.pattipati@wipro.com>
999 * Solaris autoconf detection fixes.
1002 o Tim Potter <tpot@samba.org>
1003 * BUG 1360: (correct fix) Use -Wl when passing flags to
1005 * HP-UX compile fixes (from JBravo on #samba-technical).
1006 * BUG 1731: More HP-UX compiles fixes.
1007 * BUG 1778: Include yp_prot.h before ypclnt.h as AIX 5.2
1008 spits the dummy otherwise.
1009 * Fix bug in Python printerdata wrapper.
1010 * BUG 1762: nss_winbind fixes on AIX 5.x (patch from
1011 <bugzilla-samba@thewrittenword.com>).
1012 * Fix parameter confusion in priming of name-to-sid cache
1013 (Found by Qiao Yang).
1014 * BUG 1888: Remove '..' from all pre-processor commands.
1015 * BUG 1903: Change some #if DEBUG_PASSWORD's to #ifdef
1019 o Matt Selsky <selsky@columbia.edu>
1020 * BUG 350: use autoconf 2.57 feature for checking header file
1021 preprocessing (fixes configure warnings on Solaris).
1024 o Richard Renard <rrenard@idealx.com>
1025 * Fix usermgr.exe and trust relationships.
1028 o Paul Szabo <psz@maths.usyd.edu.au>
1029 * Fix to make find_workgroup use the same
1030 truncation as create_workgroup.
1033 o Richard Sharpe <rsharpe@samba.org>
1034 * Ensure cli_write() can support writes >= 65536 bytes.
1037 o Simo Sorce <idra@samba.org>
1038 * Added check password script code in examples/auth/crackcheck/
1039 * Fix memory corruption bug caused in freeing static memory.
1042 o Andrew Tridgell <tridge@samba.org>
1043 * Remove lp_use_mmap() from map_file() since the latter
1044 is for read only and does not require coherence.
1045 * Ensure that the uuid pack/unpack routines do not go past
1046 the end of the structure.
1047 * Converted Samba 3 tree to use the new utf-16 aware iconv
1049 * Changed iconv to recognise UCS-2LE and UTF-16LE as synonyms.
1050 * Ensure configure only uses '=' instead of the bashism '=='.
1051 * Reduces the number of tdb locking calls made on file IO.
1054 o Jelmer Vernooij <jelmer@samba.org>
1055 * Convert internal data to UTF-8 before calling libxml2.
1056 * Complain if 'password chat' doesn't contain the %u variable
1057 (based on a patch by Ronan Waide).
1061 * BUG 1541: Fix recursive ls in smbclient.
1064 o Igor Zhbanov <bsg@uniyar.ac.ru>
1065 * BUG 1797: Prevent winbind and nmbd from ignoring the "-l"
1068 --------------------------------------------------
1070 =============================
1071 Release Notes for Samba 3.0.7
1073 =============================
1075 This is the latest stable release of Samba. This is the version
1076 that production Samba servers should be running for all
1077 current bug-fixes. There have been several important issues
1078 fixes since the 3.0.6 release. See the "Changes" section for
1079 details on exact updates.
1081 Common bugs fixed in 3.0.7 include:
1083 o Fixes for two Denial of Service vulnerabilities
1084 (CVE ID# CAN-2004-0807 & CAN-2004-0808).
1085 o Winbind failure to return user entries under certain
1087 o Syntax errors in the OpenLDAP schema file (samba.schema).
1088 o Printing errors caused by not setting default values
1089 for the various printing commands.
1098 Parameter Name Action
1099 -------------- ------
1100 winbind enable local accounts disabled by default
1105 o Jeremy Allison <jra@samba.org>
1106 * Fix parsing of names ending in dot and a few other error
1108 * BUG 1674: Move the symlinks checks into reduce_name().
1109 * Fix memleak when checking the valid names smb.conf option.
1110 * Fix memleak on error return path in the file open code.
1111 * More paranoia checks in the hash2 mangling code.
1112 * Fix syntax error in configure.in.
1113 * Match Win2k3's behavior for pathname parsing error returns.
1114 * Make nmbd more robust against bad netbios packets
1116 * Add more checks for invalid ASN.1 packets for SPNEGO packets
1120 o Andrew Bartlett <abartlet@samba.org>
1121 * Janitor work in loadparm.c -- remove unused parameters.
1124 o Gerald Carter <jerry@samba.org>
1125 * BUG 1464: Ensure that printing commands are initialized even
1126 if the 'printing' parameter is not explicitly set.
1127 * Resolve name conflict on DEC OSF-5.1 (inspired by patch from
1128 Adharsh Praveen <rprav@india.hp.com>)
1129 * Work around parsing error in the print change notify code.
1130 * remove duplicate declaration of getprintprocdir from
1132 * Only use sAMAccountName and not userPrincipalName when looking
1133 up a username in AD since the breaks winbindd (lookup_name()
1134 only works with the sAMAccountName).
1135 * Fix bug with winbindd_getpwnam() caused by Microsoft DC's not
1136 filling in the username in the user_info3.
1137 * Fix logic bug in the check for creating a user's home directory
1138 in register_vuid(); caused home directory to be mismatched to
1139 the first share in smb.conf under certain conditions.
1140 * BUG 1656: rename auto.a to auto.smb.
1141 * Ensure that we assign our pid to print jobs (and not our
1142 parent's pid); ensures that spooling jobs from dead smbds
1143 are removed from the tdb.
1144 * Disable 'winbind enable local accounts' by default.
1145 * Adding some initial checks for DragonFly (same as
1149 o Guenther Deschner <gd@samba.org>
1150 * Use SMB_ASSERT() to track down NULL printer names in
1152 * Revert fix for BUG 1474 to avoid unnecessary packaging
1156 o Olaf Flebbe <o.flebbe@science-computing.de>.
1157 * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3
1159 * BUG 1626: More compile fixes.
1162 o Rob Foehl <rwf@loonybin.net>
1163 * Don't clear the PRINT_ATTRIBUTE_PUBLISHED was getting reset
1164 by attempts to sanitize the defined attributes.
1167 o SATOH Fumiyasu <fumiya@miraclelinux.com>
1168 * BUG 1546: Preserve errno in MB strupper_m/strlower_m.
1171 o Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>.
1172 * BUG 1657: Remove used initialized variable,
1173 * BUG 1658: Add a little bit of const.
1176 o Volker Lendecke <vl@samba.org>
1177 * If there's garbage in the pidfile, we should not panic
1178 but assume that no one else is around. We can't find the
1182 o Jim McDonough <jmcd@us.ibm.com>
1183 * Fixup format string in the tdb error messages.
1186 o Jonas Olsson <lexicon@lysator.liu.se>
1187 * BUG 1416: Don't reuncture a users list to NGROUPS_MAX when
1188 reporting the list in usrmgr.exe.
1191 o Tim Potter <tpot@samba.org>
1192 * Fix out-of-tree builds (problem with the script to generate
1193 the svn version number).
1194 * BUG 1360: Need to use -Wl when passing flags to the linker.
1195 * BUG 1741: Define a struct nss_groupsbymem for HPUX 11 which
1196 doesn't have one of its own.
1198 o Simo Sorce <idra@samba.org>
1199 * Fixup compile issues on AIX caused by broken strlen() and
1201 * Update debian packaging files.
1204 o Dimitri van der Spek <dwspek@aboveit.nl>
1205 * Use the correct counter when copying group rids from the
1206 user_info3 struct in pam_winbind.
1209 o Qiao Yang <qyang@stbernard.com>
1210 * BUG 1622: Only cache the user
1213 --------------------------------------------------
1215 =============================
1216 Release Notes for Samba 3.0.6
1218 =============================
1220 Common bugs fixed in 3.0.6 include:
1222 o Schannel failure in winbindd.
1223 o Numerous memory leaks.
1224 o Incompatibilities between the 'write list' and 'force user'
1226 o Premature optimization of the open_directory() internal
1227 function that broke tools such as the ArcServe backup
1228 agent, Macromedia HomeSite, and Robocopy.
1229 o Corrupt workgroup names in nmbd's browse.dat.
1230 o Sharing violation errors commonly seen when opening
1231 when serving Microsoft Office documents from a Samba
1233 o Browsing problems caused by an apostrophe (') in the
1234 computer's description field.
1235 o Problems creating special file types from UNIX CIFS
1236 clients and enabling 'unix extensions'.
1237 o Fix stalls in smbd caused by inaccessible LDAP servers.
1238 o Remove various memory leaks.
1239 o Fix issues in the password lockout feature.
1241 New features introduced in this release include:
1243 O Support symlinks created by CIFS clients which
1244 can be followed on the server.
1245 o Using a cups server other than localhost.
1246 o Maintaining the service principal entry in the system
1247 keytab for integration with other kerberized services.
1248 Please refer to the 'use kerberos keytab' entry in
1249 smb.conf(5). When using the heimdal kerberos libraries,
1250 you must also specify the following in /etc/krb5.conf:
1252 default_keytab_name = FILE:/etc/krb5.keytab
1253 o Support for maintaining individual printer names
1254 stored separately from the printer's sharename.
1255 o Support for maintaining user password history.
1256 o Support for honoring the logon times for user in a
1259 --------------------------------------------
1260 unix extensions = yes (default) and symlinks
1261 --------------------------------------------
1263 Beginning with Samba 3.0.6pre1 (formerly known as 3.0.5pre1),
1264 clients supporting the UNIX extensions to the CIFS protocol
1265 can create symlinks to absolute paths which will be **followed**
1266 by the server. This functionality has been requested in order
1267 to correctly support certain applications when the user's home
1268 directory is mounted using some type of CIFS client (e.g. the
1269 cifsvfs in the Linux 2.6 kernel).
1271 If this behavior is not acceptable for your production environment
1272 you can set 'wide links = no' in the specific share declaration in
1273 the server's smb.conf. Be aware that disabling wide link support
1274 out of a share in Samba may impact the server's performance due
1275 to the fact that smbd will now have to check each path additional
1276 times before traversing it.
1278 ------------------------
1279 Password History Support
1280 ------------------------
1282 The new password history feature allows smbd to check the new
1283 password in password change requests against a list of the user's
1284 previous passwords. The number of previous passwords to save can
1285 be set using pdbedit (4 in this example):
1287 root# pdbedit -P "password history" -C 4
1289 When using the ldapsam passdb backend, it is vital to secure the
1290 following attributes from access by non-administrative users:
1294 * sambaPasswordHistory
1296 You should refer to your directory server's documentation on how
1297 to implement this restriction.
1306 Parameter Name Action
1307 -------------- ------
1309 defer sharing violations New
1310 force unknown acl user New
1312 printcap cache time New
1313 use kerberos keytab New
1317 o Jeremy Allison <jra@samba.org>
1318 * Correct path parsing bug that broke DeletePrinterDriverEx().
1319 * Fix bugs in check_path_syntax() caught by asserts.
1320 * Internal change - rearrange internal global case setting
1321 variables to a per connection basis.
1322 * BUG 1345: Fix premature optimization in unix_convert().
1323 * Allow clients to truncate a locked file.
1324 * BUG 1319: Always check to see if a user as write access
1325 to a share, even when 'force user' is set.
1326 * Fix specific case of open that doesn't cause oplock break,
1327 or share mode check.
1328 * Correct sid type is WKN_GROUP, not alias. Added some
1329 more known types (inspired by patch from Jianliang Lu).
1330 * Allow creation of absolute symlink paths via CIFS clients.
1331 * Fix charset bug in when invoking send_mailslot().
1332 * When using widelinks = no, use realpath to canonicalize
1333 the connection path on connection create for the user.
1334 * Enhance stat open code.
1335 * Fix unix extensions mknod code path.
1336 * Allow unix domain socket creation via unix extensions.
1337 * Auto disable the 'store dos attribute' parameter if the
1338 underlying filesystem doesn't support EAs.
1339 * Implement deferred open code to fix a bug with Excel files
1341 * BUG 1427: Catch bad path errors at the right point. Ensure
1342 all our pathname parsing is consistent.
1343 * Fix SMB signing error introduced by the new deferred open
1345 * Change default setting for case sensitivity to "auto". (see
1346 commit message -- r1154 -- for details).
1347 * Add new remote client arch -- CIFSFS.
1348 * Allow smbd to maintain the service principal entry in the
1349 system keytab file (based on patch Dan Perry <dperry@pppl.gov>,
1350 Guenther Deschner, et. al.).
1351 * Fix longstanding memleak bug with logfile name.
1352 * Fix incorrect type in printer publishing (struct uuid,
1354 * Heimdal compile fixes after introduction of the new ketyab
1356 * Ensure we check attributes correctly on rename request.
1357 * Ensure we defer a sharing violation on rename correctly.
1358 * BUG 607: Ensure we remove DNS and DNSFAIL records immediately
1360 * Fix bogus error message when using "mangling method = hash"
1362 * Turn on sendfile by default for non-Win9x clients.
1363 * Handle non-io opens that cause oplock breaks correctly.
1364 * Ensure ldap replication sleep time is not more than 5 seconds.
1365 * Add support for storing a user's password history.
1366 LDAP portion of the code was based on a patch from
1367 Jianliang Lu <j.lu@tiesse.com>.
1368 * Correct memory leaks found in the password change code.
1369 * Fix support for the mknod command with the Linux CIFS client.
1370 * Remove support for passing the new password to smbpasswd
1371 on the command line without using the -s option.
1372 * Ensure home directory service number is correctly reused
1373 (inspired by patches from Michael Collin Nielsen
1374 <michael@hum.aau.dk>).
1375 * Fix to stop printing accounts from resetting the bas
1376 password and account lockout flags.
1377 * If a account was locked out by an admin (and has a bad
1378 password count of zero) leave it locked out until an admin
1379 unlocks it (but log a message).
1380 * Ensure we return the same ACL revision on the wire that
1382 * BUG 1578: Hardcode replacement for invalid characters as '_'
1383 (based on fix from Alexander E. Patrakov <patrakov@ums.usu.ru>).
1384 * Fix hashed password history for LDAP backends.
1385 * Enforce logon hours restrictions if confiogured (based on code
1386 from Richard Renard <rrenard@idealx.com>).
1387 * BUG 1606: Force smbd to disable sendfile with DOS clients
1388 and ensure that the chained header is filled in for ...&X
1390 * BUG 1602: Fix access to shares when all symlink support
1395 o Tom Alsberg <alsbergt@cs.huji.ac.il>
1396 * Allow pdbedit to export a single user from a passdb backend.
1399 o Andrew Bartlett <abartlet@samba.org>
1400 * Fix parsing bug in GetDomPwInfo().
1401 * Fix segfault in 'ntlm_auth --diagnostics'.
1402 * Re-enable code to allow sid_to_gid() to perform a group
1403 mapping lookup before checking with winbindd.
1404 * Fix memory leak in the trans2 signing code.
1405 * Allow more flexible GSS-SPENGO client and server operation
1407 * Improve smbd's internal random number generation.
1408 * Fix a few outstanding long password changes in smbd.
1409 * Fix LANMAN2 session setup code.
1412 o Eric Boehm <boehm@nortelnetworks.com>
1413 BUG 703: Final touches on netgroup case lookups.
1416 o Jerome Borsboom <j.borsboom@erasmusmc.nl>
1417 * Ensure error status codes don't get overwritten in
1418 lsa_lookup_sids() server code.
1419 * Correct bug that caused smbd to overwrite certain error
1420 codes when returning up the call stack.
1421 * Ensure the correct sid type returned for builtin sids.
1424 o Gerald Carter <jerry@samba.org>
1425 * Fix a few bugs in the Fedora Packaging files.
1426 * Fix for setting the called name to by our IP if the
1427 called name was *SMBSERVER and *SMBSERV. Fixes issue
1428 with connecting to printers via \\ip.ad.dr.ess\printer
1430 * BUG 1315: fix for schannel client connections to servers
1431 when we haven't specifically negotiated AUTH_PIPE_SEAL.
1432 * Allow PrinterDriverData valuenames with embedded backslashes
1433 (Fixes bug with one of the Konica Fiery drivers).
1434 * Fixed string length miscalculation in netbios names that
1435 resulted in corrupt workgroup names in browse.dat.
1436 * When running smbd as a daemon, launch child smbd to update
1437 the lpq cache listing in the background.
1438 * Allow printers "Printers..." folder to be renamed to a string
1439 other than the share name.
1440 * Allow winbindd to use domain trust account passwords when
1441 running on a Samba DC to establish an schannel to remote
1443 * Fix bad merge and ensure that we always use tdb_open_log()
1444 instead of tdb_open_ex() (the former call enforce the 'use
1446 * BUG 1221: revert old change that used single and double
1447 quotes as delimeters in next_token(), and change
1448 print_parameter() to print out parm values surrounded by
1449 double quotes (instead of single quotes).
1450 * Prevent home directories added during the SMBsesssetup&X from
1451 being removed as unused services.
1452 * Invalidate the print object cache for open printer handles when
1453 smbd receives a message that an attribute on a given printer
1455 * Cause the configure script to exit if --enable-cups[=yes] is
1456 defined and the system does not have the cups devel files
1458 * BUG 1297: Prevent map_username() from being called twice
1460 * Ensure that we use the userPrincipalName AD attribute
1461 value for LDAP SASL binds.
1462 * Ensure we remove the tdb entry when deleting a job that
1464 * BUG 1520: Work around bug in Windows XP SP2 RC2 where the
1465 client sends a FindNextPrintChangeNotify() request without
1466 previously sending a FindFirstPrintChangeNotify(). Return
1467 the same error code as Windows 2000 SP4.
1468 * BUG 1516: Manually declare ldap_open_with_timeout() to
1469 workaround compiler errors on IRIX (or other systems without
1471 * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from
1473 * Corrected syntax error in the OID for sambaUnixIdPool,
1474 sambaSidEntry, & sambaIdmapEntry object classes.
1475 * Tighten the cache consistency with the ntprinters.tdb entry
1476 an the in memory cache associated with open printer handles.
1477 * Make sure that register_messages_flags() doesn't overwrite
1478 the originally registered flags.
1481 o Fabien Chevalier <fabien.chevalier@supelec.fr>
1482 * Debian BUG 252591: Ensure that the return value from the
1483 number of available interfaces is initialized in case no
1484 interfaces are actually available.
1487 o Guenther Deschner <gd@sernet.de>
1488 * Implement 'rpcclient setprintername'.
1489 * Add local groups to the user's NT_TOKEN since they are
1490 actually supported now.
1491 * Heimdal compile fixes after introduction of the new keytab
1493 * Correctly honor the info level parameter in 'rpcclient
1495 * Reintroduce 'force unknown acl user' parameter. When getting a
1496 security descriptor for a file, if the owner sid is not known,
1497 the owner uid is set to the current uid. Same for group sid.
1498 * Ensure that REG_SZ values in the SetPrinterData actually
1499 get written in UNICODE strings rather than ASCII.
1500 * Ensure that the last kerberos error return is not invalid.
1501 * Display share ACL entries from rpcclient.
1502 * Correct infinite loop in pam_winbind's verification of
1503 group membership in the 'other sids' field in the user_info3
1507 o Fabian Franz <FabianFranz@gmx.de>
1508 * Support specifying a port in the device URL passed to smbspool.
1511 o Steve French <sfrench@us.ibm.com>
1512 * Handle -S and user mount parms in mount.cifs.
1513 * Fix user unmount of shares mount with suid mount.cifs.
1514 * prevent infinite recusion in reopen_logs() when expanding
1515 the smb.conf variable %I.
1518 o Bjoern Jacke <bj@sernet.de>
1519 * Install libsmbclient into $(LIBDIR), not into hard coded
1520 ${prefix}/lib. This helps amd64 systems with /lib and /lib64
1521 and an explicit configure --libdir setting.
1524 o <kawasa_r@itg.hitachi.co.jp>
1525 * Correct more memory leaks and initialization bugs.
1526 * Fix bug that prevented core dumps from being generated
1528 * Connect to the winbind pipe in non-blocking mode to
1529 prevent processes from hanging.
1530 * Memory leak fixes.
1533 o Stephan Kulow <coolo@suse.de>
1534 * Fix crash bug in libsmbclient.
1537 o Volker Lendecke <vl@samba.org>
1538 * Added vfs_full_audit module.
1539 * Add vfs_afsacl.c which can display & set AFS acls via
1540 the NT security editor.
1541 * Fix crash bug caused by trying to Base64 encode a NULL string.
1542 * Fix DOS error code bug in reply_chkpath().
1543 * Correct misunderstanding of the max_size field in
1544 cli_samr_enum_als_groups; it is more like an account_control
1545 field with individual bits what to retrieve.
1546 * Implement 'net rpc group rename' -- rename domain groups.
1547 * Implement the 'cups server' option. This makes it possible
1548 to have virtual smbd's connect to different cups daemons.
1549 * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
1550 * Fix sid_to_gid() calls in winbindd to prevent loops.
1551 * Ensure that local_sid_to_gid() sets the type of the group on
1553 * Make sure that the clients are given back the IP address to
1554 which they connected in the case of a multi-homed host. Only
1555 affects strings the spoolss printing replies.
1556 * Fix the bad password lockout. This has not worked as pdb_ldap.c
1557 did not ask for the modifyTimestamp attribute, so it could
1558 not find it. Try not to regress by not putting that attrib
1559 in the main list but append it manually for the relevant searches.
1560 * Fix two memleaks in login_cache.c.
1561 * fixes memory bloat when unmarshalling strings.
1562 * Fix compile errors using gcc 3.2 on SuSE 8.2.
1563 * Fix the build for systems without kerberos headers.
1564 * Allow winbindd to handle authentication requests only when
1565 started without either an 'idmap uid' or 'idmap gid' range.
1566 * Fix the build for systems without ldap headers.
1567 * Fix interaction between share security descriptor and the
1568 'read only' smb.conf option.
1569 * Fix bug that caused _samr_lookupsids() with more than 32 (
1570 MAX_REF_DOMAINS) SIDs to fail.
1571 * Allow the 'idmap backend' parameter to accept a list of
1572 LDAP servers for failover purposes.
1573 * Revert code in smbd to remove a tdb when it has become
1575 * Add paranoid checks when mapping SIDs to a uid/gid to
1576 ensure that the type is correct.
1577 * Initial work on getting client support for sending mailslot
1579 * Add 'ldap timeout' parameter.
1580 * Dont always uppercase 'afs username map'.
1581 * Expand aliases for getusersids as well.
1582 * Improved NT->AFS ACL mapping VFS module.
1585 o Herb Lewis <herb@samba.org>
1586 * Add the acls debug class.
1587 * Fix logic bug in netbios name truncate routine.
1588 * Fix smbd crash caused by smbtorture IOCTL test.
1589 * Fix errno tromping before calling iconv to reset the
1591 * need to leave empty dacl so we can remove last ACE.
1594 o Jianliang Lu <Jianliang.Lu@getronics.com>
1595 * Fix to stop smbd hanging on missing group member in
1597 * Make sure Samba returns the correct group types.
1598 * Reset the bad password count password counts upon a successful login.
1601 o Jason Mader <jason@ncac.gwu.edu>
1602 * BUG 1385: Don't use non-consts in a structure initialization.
1605 o Jim McDonough <jmcd@us.ibm.com>
1606 * BUG 1279: SMBjobid fix for Samba print servers running on
1607 Big-Endian platforms.
1610 o Joe Meadows <jameadows@webopolis.com>
1611 * Add optional timeout parameter to ldap open calls.
1612 * Allow get_dc_list() to check the negative cache.
1615 o Stefan Metzmacher <metze@samba.org>
1616 * fix a configure logic bug for linux/XFS quotas when
1617 using --with-sys-quotas.
1618 * Use quota debug class in quota code.
1619 * print out the SVN revision by configure,
1622 o Buchan Milne <bgmilne@mandrake.org>
1623 * Mandrake packaging fixes.
1626 o Lars Mueller <lmuelle@suse.de>
1627 * BUG 1279: Added 'printcap cache time' parameter.
1628 * Fix afs related build issues on SuSE.
1629 * Fix compiler warnings in the kerberos client code.
1632 o James Peach <jpeach@sgi.com>
1633 * More iconv detection fixes for IRIX.
1634 * Compile fixed for systems that do not have C99/UNIX98 compliant
1635 vsnprintf by default.
1636 * Prevent smbd from attempting to use sendfile at all if it is
1637 not supported by the server's OS.
1638 * Allow SWAT to search for index.html when serving html files
1643 * Implement NFS quota support on FreeBSD.
1646 o Tim Potter <tpot@samba.org>
1647 * BUG 1360: Use -Bsymbolic when creating shared libraries to
1648 avoid conflicts with identical symbols in the global namespace
1649 when loading libnss_wins.so.
1652 o Richard Renard <rrenard@idealx.com>
1653 * Save the current password as it is being changed into the
1654 password history list.
1657 o Richard Sharpe <rsharpe@samba.org>
1658 * Fix error return codes on some lock messages.
1659 * BUG 1178: Make the libsmbclient routines callable
1661 * BUG 1333: Make sure we return an error code when
1663 * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when
1664 share mode locking requests fail.
1667 o Simo Sorce <idra@samba.org>
1668 * Update Debian stable & unstable packaging.
1669 * Tidy up parametric options in testparm output.
1672 o Richard Sharpe <rsharpe@samba.org>
1673 * Add sigchild handling to winbindd to restart the child
1674 daemon if necessary.
1677 o Tom Shaw <tomisfaraway@gmail.com>
1678 * Use winbindd_fill_pwent() consistently.
1681 o Nick Thompson <nickthompson@agere.com>
1682 * Protect smbd against broken filesystems which return zero
1686 o Andrew Tridgell <tridge@samba.org>
1687 * Fixed bug in handling of timeout in socket connections.
1690 o Nick Wellnhofer <wellnhofer@aevum.de>
1691 * Prevent lp_interfaces() list from being corrupted. Fixes
1692 bug where nmbd would lose the list of network interfaces
1693 on the system and consequently shutdown.
1696 o James Wilkinson <jwilk@alumni.cse.ucsc.edu>
1697 * Fix ntlm_auth memory leaks.
1700 o Jelmer Vernooij <jelmer@samba.org>
1701 * Additional NT status to unix error mappings.
1702 * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't
1703 get duplicate symbol errors.
1704 * Return an error when the last command read from stdin
1706 * Prepare for better error checking in tar.
1707 * BUG 1474: Fix build of --with-expsam stuff on Solaris.
1710 Changes for older versions follow below:
1712 --------------------------------------------------
1714 =============================
1715 Release Notes for Samba 3.0.5
1717 =============================
1719 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with
1720 the exception of correcting the two security issues outlined
1723 ######################## SECURITY RELEASE ########################
1725 Summary: Multiple Potential Buffer Overruns in Samba 3.0.x
1726 CVE ID: CAN-2004-0600, CAN-2004-0686
1727 (http://cve.mitre.org/)
1730 This is the latest stable release of Samba. This is the version
1731 that production Samba servers should be running for all current
1734 It has been confirmed that versions of Samba 3 prior to v3.0.4
1735 are vulnerable to two potential buffer overruns. The individual
1736 details are given below.
1742 Affected Versions: Samba 3.0.2 and later
1744 The internal routine used by the Samba Web Administration
1745 Tool (SWAT v3.0.2 and later) to decode the base64 data
1746 during HTTP basic authentication is subject to a buffer
1747 overrun caused by an invalid base64 character. It is
1748 recommended that all Samba v3.0.2 or later installations
1749 running SWAT either (a) upgrade to v3.0.5, or (b) disable
1750 the swat administration service as a temporary workaround.
1752 This same code is used internally to decode the
1753 sambaMungedDial attribute value when using the ldapsam
1754 passdb backend. While we do not believe that the base64
1755 decoding routines used by the ldapsam passdb backend can
1756 be exploited, sites using an LDAP directory service with
1757 Samba are strongly encouraged to verify that the DIT only
1758 allows write access to sambaSamAccount attributes by a
1759 sufficiently authorized user.
1761 The Samba Team would like to heartily thank Evgeny Demidov
1762 for analyzing and reporting this bug.
1768 Affected Versions: Samba 3.0.0 and later
1770 A buffer overrun has been located in the code used to support
1771 the 'mangling method = hash' smb.conf option. Please be aware
1772 that the default setting for this parameter is 'mangling method
1773 = hash2' and therefore not vulnerable.
1775 Affected Samba 3 installations can avoid this possible security
1776 bug by using the default hash2 mangling method. Server
1777 installations requiring the hash mangling method are encouraged
1778 to upgrade to Samba 3.0.5.
1781 ##################################################################
1783 --------------------------------------------------
1785 =============================
1786 Release Notes for Samba 3.0.4
1788 =============================
1790 Common bugs fixed in Samba 3.0.4 include:
1792 o Password changing after applying the patch described in
1793 the Microsoft KB828741 article to Windows clients.
1795 o Managing print jobs via Windows on Big-Endian servers.
1796 o Several memory leaks in winbindd and smbd.
1797 o Compile issues on AIX and *BSD.
1800 --------------------
1805 o Jeremy Allison <jra@samba.org>
1806 * Fix path processing for DeletePrinterDriverEx().
1807 * BUG 1303: Fix for Microsoft hotfix MS04-011 password change
1811 o Andrew Bartlett <abartlet@samba.org>
1812 * Fix alignment bug in GetDomPwInfo().
1815 o Alexander Bokovoy <ab@samba.org>
1816 * Fix utime[s]() issues in smbwrapper on systems
1817 that can boot both the 2.4 and 2.6 Linux kernels.
1820 o Gerald Carter <jerry@samba.org>
1821 * Fedora packaging fixes.
1822 * BUG 1302: Fix seg fault by not trying to optimize a list of
1823 invalid gids using the wrong array size.
1824 * BUG 1309: fix seg fault caused by trying to strdup(NULL)
1825 seen when 'security = share'.
1826 * Fix problems when using IBM's compiler on AIX.
1827 * Link Developer's Guide, Example Guide, and multi-page HOWTO
1828 into SWAT's welcome page.
1829 * BUG 1293: fix double free in printer publishing code.
1832 o Wim Delvaux <wim.delvaux@adaptiveplanet.com>
1833 * Fix for handling timeouts in socket connections.
1836 o Michel Gravey <michel.gravey@optogone.com>
1837 * BUG 483: patch from to fix password hash creation in SWAT.
1840 o Volker Lendecke <vl@samba.org>
1841 * Close the open NT pipes before the tdis.
1842 * Fix AFS related build issues.
1843 * Handle error conditions when base64 encoding a blob of 0 bytes.
1846 o Herb Lewis <herb@samba.org>
1847 * Added 'acls' debug class.
1849 o kawasa_r@itg.hitachi.co.jp
1850 * Multiple variable initialization and memory leak fixes.
1853 o Stephan Kulow <coolo@suse.de>
1854 * Fix string length bug in libsmbclient that caused KDE's
1856 * BUG 429: More libsmbclient fixes.
1859 o Jim McDonough <jmcd@us.ibm.com>
1860 * BUG 1007, 1279: Store the print job using a little-endian key.
1864 o Compile fix for OpenBSD (ENOTSUP not supported).
1867 o Stefan Metzmacher <metze@samba.org>
1868 * Correct bug in disks quota views from explorer.
1871 o Tim Potter <tpot@samba.org>
1872 BUG 1305: Correct debug output.
1875 o Richard Sharpe <rsharpe@samba.org>
1876 * Fix incorrect error code mapping.
1879 o Jelmer Vernooij <jelmer@samba.org>
1880 * Add additional NT_STATUS errorm mappings.
1883 Changes for older versions follow below:
1885 --------------------------------------------------
1887 =============================
1888 Release Notes for Samba 3.0.3
1890 =============================
1893 Common bugs fixed in Samba 3.0.3 include:
1895 o Crash bugs and change notify issues in Samba's printing code.
1896 o Honoring secondary group membership on domain member servers.
1897 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
1898 o Substitution errors for %[UuGg] in smb.conf.
1899 o winbindd crashes when using ADS security mode.
1900 o SMB signing errors.
1901 o Delays in winbindd startup caused by unnecessary
1902 connections to trusted domain controllers.
1903 o Various small memory leaks.
1904 o Winbindd failing due to expired Kerberos tickets.
1906 New features introduced in Samba 3.0.3 include:
1908 o Improved support for i18n character sets.
1909 o Support for account lockout policy based on
1910 bad password attempts.
1911 o Improved support for long password changes (>14
1912 characters) and strong password enforcement.
1913 o Support for Windows aliases (i.e. nested groups).
1914 o Experimental support for storing DOS attribute on files
1915 and folders in Extended Attributes.
1916 o Support for local nested groups via winbindd.
1917 o Specifying options to be passed directly to the CUPS libraries.
1919 Please be aware that the Samba source code repository was
1920 migrated from CVS to Subversion on April 4, 2004. Details on
1921 accessing the Samba source tree via anonymous svn can be found
1922 at http://svn.samba.org/samba/subversion.html.
1925 Changes since 3.0.2a
1926 --------------------
1930 Parameter Name Action
1931 -------------- ------
1934 only user Deprecated
1935 store dos attributes New
1937 winbind nested groups New
1943 o Jeremy Allison <jra@samba.org>
1944 * Ensure that Kerberos mutex is always properly unlocked.
1945 * Removed Heimdal "in-memory keytab" support.
1946 * Fixup the 'multiple-vuids' bugs in our server code.
1947 * Correct return code from lsa_lookup_sids() on unmapped
1948 sids (based on work by vl@samba.org).
1949 * Fix the "too many fcntl locks" scalability problem
1951 * Fixup correct (as per W2K3) returns for lookupsids
1952 as well as lookupnames.
1953 * Fixups for delete-on-close semantics as per Win2k3 behavior.
1954 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
1955 * Fix "unable to initialize" bug when smbd hasn't been run with
1956 new system and a user is being added via pdbedit/smbpasswd.
1957 * Added NTrename SMB (0xA5).
1958 * Fixup correct timeout values for blocking lock timeouts.
1959 * Fix various bugs reported by 'gentest'.
1960 * More locking fixes in the case where we own the lock.
1961 * Fix up regression in IS_NAME_VALID and renames.
1962 * Don't set allocation size on directories.
1963 * Return correct error code on fail if file exists and target
1965 * Added client "hardlink" comment to test doing NT rename with
1966 hard links. Added hardlink_internals() code - UNIX extensions
1967 now use this as well.
1968 * Use a common function to parse all pathnames from the wire for
1969 much closer emulation of Win2k3 error return codes.
1970 * Implement check_path_syntax() and rewrite string sub
1971 functions for better multibyte support.
1972 * Ensure msdfs referrals are multibyte safe.
1973 * Allow msdfs symlink syntax to be more forgiving.
1974 eg. sym_link -> msdfs://server/share/path/in/share
1975 or sym_link -> msdfs:\\server\share\path\in\share.
1976 * Cleanup multibyte netbios name support in nmbd ( based on patch
1977 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
1978 * Fix check_path_syntax() for multibyte encodings which have
1979 no '\' as second byte (based on work by ab@samba.org.
1980 * Fix the "dfs self-referrals as anonymous user" problem
1981 (based on patch from vl@samba.org).
1982 * BUG 1064: Ensure truncate attribute checking is done correctly
1983 on "hidden" dot files.
1984 * Fix bug in anonymous dfs self-referrals again.
1985 * Fix get/set of EA's in client library
1986 * Added support for OS/2 EA's in smbd server.
1987 * Added 'ea support' parameter to smb.conf.
1988 * Added 'store dos attributes' parameter to smb.conf.
1989 * Fix wildcard identical rename.
1990 * Fix reply_ctemp - make compatible with w2k3.
1991 * Fix wildcard unlink.
1992 * Fix wildcard src with wildcard dest renames.
1993 * BUG 1139: Fix based on suggestion by jdev@panix.com.
1994 swap lookups for user and group - group will do an
1995 algorithmic lookup if it fails, user won't.
1996 * Make EA's lookups case independent.
1997 * Fix SETPATHINFO in 'unix extensions' support.
1998 * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for
1999 the UNIX info levels, and the short case preserve names.
2002 o Timur Bakeyev <timur@com.bat.ru>
2003 * BUG 1144: only set --with-fhs when the argument is 'yes'
2004 * BUG 1152: Allow python modules to build despite libraries added
2005 to LDFLAGS instead of LDPATH.
2006 * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
2009 o Craig Barratt <cbarratt@users.sourceforge.net>
2010 * BUG 389: Allow multiple exclude arguments with smbclient
2011 tar -Xr options (better support for Amanda backup client).
2014 o Andrew Bartlett <abartlet@samba.org>
2015 * Include support for linking with cracklib for enforcing strong
2017 * Add support for >14 character password changes from Windows
2019 * Add 'admin set password' capability to 'net rpc'.
2020 * Allow 'net rpc samdump' to work with any joined domain
2021 regardless of smb.conf settings.
2022 * Use an allocated buffer for count_chars.
2023 * Add sanity checks for changes in the domain SID in an
2025 * Implement python unit tests for Samba's multibyte string
2027 * Remove 'unicode' smb.conf option.
2028 * BUG 1138: Fix support for 'optional' SMB signing and other
2030 * BUG 169: Fix NTLMv2-only behavior.
2031 * Ensure 'net' honors the 'netbios name' in the smb.conf by
2033 * Support SMB signing on connections using only the LANMAN
2034 password and generate the correct the 'session key' for these
2036 * Implement --required-membership-of=, an ntlm_auth option
2037 that restricts all authentication to members of this particular
2039 * Improve our fall back code for password changes.
2040 * Only send the ntlm_auth 'ntlm-server-1' helper client a '.'
2041 after the server had said something (such as an error).
2042 * Add 'ntlm-server-1' helper protocol to ntlm_auth.
2045 o Alexander Bokovoy <ab@samba.org>
2046 * Fix incorrect size calculation of the directory name
2048 * Fix problems with very long filenames in both smbd and smbclient
2049 caused by truncating paths during character conversions.
2050 * Fix smbfs problem with Tree Disconnect issued before smbfs
2054 o Gerald Carter <jerry@samba.org>
2055 * BUG 850: Fix 'make installmodules' bug on True64.
2056 * BUG 66: mark 'only user' deprecated.
2057 * Remove corrupt tdb and shutdown (only for printing tdbs,
2058 connections, sessionid & locking).
2059 * decrement smbd counter in connections.tdb in smb_panic().
2060 * RedHat specfile updates.
2061 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
2062 * BUG 1147; bad pointer case in get_stored_queue_info()
2064 * BUG 761: read the config file before initialized default
2065 values for printing options; don't default to bsd printing
2067 * Allow the 'printing' parameter to be set on a per share basis.
2068 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
2069 * BUG 848: don't create winbind local users/groups that already
2071 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
2073 * BUG 488: fix the 'show client in col 1' button and correctly
2074 enumerate active connections.
2075 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
2076 problem when storing the updating pid for the lpq cache.
2077 * BUG 1007 (partial): Fix print change notify bugs.
2078 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
2079 and winbind use default domain = yes. Also ensures that
2080 * BUG 1151: Ensure that winbindd users are passed through
2082 * Fix client rpc binds for ASU derived servers (pc netlink,
2084 * BUG 417, 1128: Ensure that the current_user_info is set
2085 consistently so that %[UuGg] is expanded correctly.
2086 * BUG 1195: Fix crash in winbindd when the ADS server is
2088 * BUG 1185: Set reconnect time to be the same as the
2089 'winbind cache time'.
2090 * Ensure that we return the sec_desc in smb_io_printer_info_2.
2091 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
2092 * BUG 1095: Honor the '-l' option in smbclient.
2093 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
2095 * Ensure server schannel uses the auth level requested by the
2097 * Removed --with-cracklib option due to potential crash issue.
2098 * Fix -lcrypto linking problem with wbinfo.
2099 * BUG 761: allow printing parameter to set defaults on a per
2101 * Add 'cups options' parameter to allow raw printing without
2102 changing /etc/cups/cupsd.conf.
2103 * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and
2105 * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
2106 * BUG 1288: resolve any machine netbios name (0x00) and not just
2108 * BUG 1199: Fix potential symlink issue in
2109 examples/printing/smbprint.
2112 o Robert Dahlem <Robert.Dahlem@gmx.net>
2113 * BUG 1048: Don't return short names when when 'mangled names = no'
2116 o Guenther Deschner <gd@suse.com>
2117 * Remove hard coded attribute name in the ads ranged retrieval
2119 * Add --with-libdir and --with-mandir to autoconf script.
2122 o Bostjan Golob <golob@gimb.org>
2123 * BUG 1046: Fix getpwent_list() so that the username is not
2124 overwritten by other fields.
2127 o Landon Fuller <landonf@opendarwin.org>
2128 * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller)
2129 to fix user/group enumeration on systems whose libc does not
2130 call setgrent() before trying to enumerate users (i.e.
2134 o Steve French <sfrench@us.ibm.com>
2135 * Update mount.cifs to version 1.1.
2136 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
2137 * Fixes to minor security bug in the mount helper.
2138 * Fix credential file mounting for cifs vfs.
2139 * Fix free of incremented pointer in cifsvfs mount helper.
2140 * Fix path canonicalization of the mount target path and help
2141 text display in the cifs mount helper.
2142 * Add missing guest mount option for mount.cifs.
2145 o SATOH Fumiyasu <fumiya@miraclelinux.com>
2146 * BUG 1055; formatting fixes for 'net share'.
2147 * BUG 692: correct truncation of share names and workgroup
2149 * BUG 1088: use strchr_m() for query_host (smbclient -L).
2150 * Patch from to internally count characters correctly.
2153 o Paul Green <paulg@samba.org>
2154 * Update VOS _POSIX_C_SOURCE macro to 200112L.
2155 * Fix bug in configure.ion by moving the first use of
2156 AC_CHECK_HEADERS so it is always executed.
2157 * Fix configure.in to only use $BLDSHARED to select whether to
2158 build static or shared libraries.
2161 o Pat Haywarrd <Pat.Hayward@propero.net>
2162 * Make the session_users list dynamic (max of 128K).
2165 o Cal Heldenbrand <calzplace@yahoo.com>
2166 * Fix for for 'pam_smbpass migrate' functionality.
2169 o Chris Hertel <crh@samba.org>
2170 * fix enumeration of shares 12 characters in length via
2174 o Ulrich Holeschak <ulrich@holeschak.de>
2175 * BUG 932: fix local password change using pam_smbpass
2178 o Krischan Jodies <kj@sernet.de>
2179 * Implement 'net rpc group delete'
2182 o John Klinger <john.klinger@lmco.com>
2183 * Return NSS_SUCCESS once the max number of gids possible
2184 has been found in initgroups() on Solaris.
2185 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
2188 o Volker Lendecke <vl@samba.org>
2189 * Fix success message for net groupmap modify.
2190 * Fix errors when enumerating members of groups in 'net rpc'.
2191 * Match Windows behavior in samr_lookup_names() by returning
2192 ALIAS(4) when you search in BUILTIN.
2193 * Fix server SAMR code to be able to set alias info for
2195 * Fix duplication of logic when creating groups via smbd.
2196 * Ensure that the HWM values are set correctly after running
2198 * Add 'net rpc group add'.
2199 * Implement 'net groupmap set' and 'net groupmap cleanup'.
2200 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
2201 * Fix wb_delgrpmem (wbinfo -o).
2202 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
2203 * Fix sambaUserWorkstations on a Samba DC.
2204 * Implement wbinfo -k: Have winbind generate an AFS token after
2205 authenticating the user.
2206 * Add expand_msdfs VFS module for providing referrals based on the
2207 the client's IP address.
2208 * Implement client side NETLOGON GetDCName function.
2209 * Fix caching of name->sid lookups.
2210 * Add support in winbindd for expanding nested local groups.
2211 * Fix memleak in winbindd.
2213 * Don't list domain groups from BUILTIN.
2214 * Fix memleak in policy handle utility functions.
2215 * Decrease winbindd startup time by only contacting trusted
2216 domains as necessary.
2217 * Allow winbindd to ask the DC for its domain for a trusted
2219 * Fix Netscape DS schema based on comments from
2220 <thomas.mueller@christ-wasser.de>.
2221 * Correct case where adding a domain user to a XP local group
2222 did a lsalookupname on the user without domain prefix, and
2224 * Fix segfault in winbindd caused by 'wbinfo -a'.
2227 o Herb Lewis <herb@samba.org>
2228 * Fix typo for tag in proto file.
2229 * Add missing #ifdef HAVE_BICONV stuff.
2230 * Truncate Samba's netbios name at the first '.' (not
2234 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
2235 * Bug fixes and enhancements to libsmbclient library.
2238 o Jianliang Lu <j.lu@tiesse.com>
2239 * Enforce the 'user must change password at next login' flag.
2240 * Decode meaning of 'fields present' flags (improves support
2243 * Don't force an upper case domain name in the ntlmssp code.
2246 o L. Lucius <ib@digicron.com>.
2250 o Jim McDonough <jmcd@us.ibm.com>
2251 * Add versioning support to tdbsam.
2252 * Update the IBM Directory Server schema with the OpenLDAP
2254 * Various decoding fixes to improve usrmgr.exe support.
2255 * Fix statfs redeclaration of statfs struct on ppc
2256 * Implement support for password lockout of Samba domain
2257 controllers and standalone servers.
2258 * Get MungedDial attribute actually working with full TS
2259 strings in it for pdb_ldap.
2260 * BUG 1208 (partial): Improvements for working with expired krb5
2261 tickets in winbindd.
2262 * Use timegm, or our already existing replacement instead of
2263 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
2264 * Remove modifyTimestamp from list of our attributes.
2265 * Fix lsalookupnames to check for domain users as well as local
2267 * Merge struct uuid replacement for GUID from trunk.
2268 * BUG 1208: Finish support for handling expired tickets in
2269 winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
2272 o Stefan Metzmacher <metze@samba.org>
2273 * Implement new VERSION schema based on subversion revision
2275 * Add shadow_copy vfs module.
2276 * Fix segault in login_cache support.
2279 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
2280 o BUG 979 -- Fix quota display on AIX.
2283 o James Peach <jpeach@sgi.com>
2284 * Correct check for printf() format when using the SGI MIPSPro
2286 * BUG 1038: support backtrace for 'panic action' on IRIX.
2287 * BUG 768: Accept profileing arg to IRIX init script.
2288 * BUG 748: Relax arg parsing to sambalp script (IRIX).
2289 * BUG 758: Fix pdma build.
2290 * Search IRIX ABI paths for libiconv. Based on initial fix from
2294 o Kurt Pfeifle <kpfeifle@danka.de>
2295 * Add example shell script for migrating drivers and printers
2296 from a Windows print server to a Samba print server using
2297 smbclient/rpcclient (examples/printing/VamireDriversFunctions).
2300 o Tim Potter <tpot@samba.org>
2301 * Fix logic bug in tdb non-blocking lock routines when
2303 * BUG 1025: Include sys/acl.h in check for broken nisplus
2305 * BUG 1066: s/printf/d_printf/g in SWAT.
2306 * BUG 1098: rename internal msleep() function to fix build
2308 * BUG 1112: Fix for writable printerdata problem in python bindings.
2309 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
2310 * BUG 1155: enclose use of fchown() with guards.
2311 * Relicense tdb python module as LGPL.
2314 o Richard Sharpe <rsharpe@samba.org>
2315 * Add support to smbclient for multiple logins on the same
2316 session (based on work by abartlet@samba.org).
2317 * Correct blocking condition in smbd's use of accept() on IRIX.
2318 * Add support for printing out the MAC address on nmblookup.
2321 o Simo Sorce <idra@samba.org>
2322 * Replace unknown_3 with fields_present in SAMR code.
2323 * More length checks in strlcat().
2326 o Andrew Tridgell <tridge@samba.org>
2327 * Rewrote the AIX UESS backend for winbindd.
2328 * Fixed compilation with --enable-dmalloc.
2329 * Change tdb license to LGPL (see source/tdb/tdb.c).
2330 * Force winbindd to use schannel in clients connections to
2334 o Jelmer Vernooij <jelmer@samba.org>
2335 * Fix ETA Calculation when resuming downloads in smbget.
2336 * Add -O (for writing downloaded files to standard out)
2337 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
2338 * Fix syntax error in example mysql table
2341 o TAKEDA yasuma <yasuma@miraclelinux.com>
2342 * BUG 900: fix token processing in cmd_symlink, cmd_link,
2343 cmd_chown, cmd_chmod smbclient functions.
2346 o Shiro Yamada <shiro@miraclelinux.com>
2347 * BUG 1129: install image files for SWAT.
2350 --------------------------------------------------
2352 ==============================
2353 Release Notes for Samba 3.0.2a
2355 ==============================
2357 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
2358 to address, in particular, a problem when using pdbedit to
2359 sanitize (--force-initialized-passwords) Samba's tdbsam
2360 backend. This is the latest stable release of Samba. This
2361 is the version that all production Samba servers should be
2362 running for all current bug-fixes.
2364 ******************* Attention! Achtung! Kree! *********************
2366 Beginning with Samba 3.0.2, passwords for accounts with a last
2367 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
2368 ldapsam, etc...) of zero (0) will be regarded as uninitialized
2369 strings. This will cause authentication to fail for such
2370 accounts. If you have valid passwords that meet this criteria,
2371 you must update the last change time to a non-zero value. If you
2372 do not, then 'pdbedit --force-initialized-passwords' will disable
2373 these accounts and reset the password hashes to a string of X's.
2375 ******************* Attention! Achtung! Kree! *********************
2384 Please refer to the CVS log for the SAMBA_3_0 branch for complete
2385 details. The list of changes per contributor are as follows:
2388 o Jeremy Allison <jra@samba.org>
2389 * Added paranoia checks in parsing code.
2392 o Andrew Bartlett <abartlet@samba.org>
2393 * Ensure that changes to uninitialized passwords in ldapsam
2394 are written to the DIT.
2397 o Gerald (Jerry) Carter <jerry@samba.org>
2398 * Fixed iterator in tdbsam.
2399 * Fix bug that disabled accounts with a valid NT password
2400 hash, but no LanMan hash.
2403 o Steve French <sfrench@us.ibm.com>
2404 * Added missing nosetuid and noexec options.
2407 o Bostjan Golob <golob@gimb.org>
2408 * BUG 1046: Don't overwrite usernames of entries returned
2412 o Sebastian Krahmer <krahmer@suse.de>
2413 * Fixed potential crash bug in NTLMSSP parsing code.
2416 o Tim Potter <tpot@samba.org>
2417 * Fixed logic in tdb_brlock error checking.
2420 o Urban Widmark <urban@teststation.com>
2421 * Set nosuid,nodev flags in smbmnt by default.
2424 --------------------------------------------------
2426 =============================
2427 Release Notes for Samba 3.0.2
2429 =============================
2431 It has been confirmed that previous versions of Samba 3.0 are
2432 susceptible to a password initialization bug that could grant an
2433 attacker unauthorized access to a user account created by the
2434 mksmbpasswd.sh shell script.
2436 The Common Vulnerabilities and Exposures project (cve.mitre.org)
2437 has assigned the name CAN-2004-0082 to this issue.
2439 Samba administrators not wishing to upgrade to the current
2440 version should download the 3.0.2 release, build the pdbedit
2443 root# pdbedit-3.0.2 --force-initialized-passwords
2445 This will disable all accounts not possessing a valid password
2446 (e.g. the password field has been set a string of X's).
2448 Samba servers running 3.0.2 are not vulnerable to this bug
2449 regardless of whether or not pdbedit has been used to sanitize
2452 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
2455 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
2456 o Logging onto a Samba domain from Windows XP clients.
2457 o Problems with the %U and %u smb.conf variables in relation to
2458 Windows 9x/ME clients.
2459 o Kerberos failures due to an invalid in memory keytab detection
2461 o Updates to the ntlm_auth tool.
2462 o Fixes for various SMB signing errors.
2463 o Better separation of WINS and DNS queries for domain controllers.
2464 o Issues with nss_winbind FreeBSD and Solaris.
2465 o Several crash bugs in smbd and winbindd.
2466 o Output formatting fixes for smbclient for better compatibility
2467 with scripts based on the 2.2 version.
2476 Parameter Name Action
2477 -------------- ------
2478 ldap replication sleep New
2479 read size removed (unused)
2480 source environment removed (unused)
2486 Please refer to the CVS log for the SAMBA_3_0 branch for complete
2487 details. The list of changes per contributor are as follows:
2489 o Jeremy Allison <jra@samba.org>
2490 * Revert change that broke Exchange clear text samlogons.
2491 * Fix gcc 3.4 warning in MS-DFS code.
2492 * Tidy up of NTLMSSP code.
2493 * Fixes for SMB signing errors
2494 * BUG 815: Workaround NT4 bug to support plaintext
2495 password logins and UNICODE.
2496 * Fix SMB signing bug when copying large files.
2497 * Correct error logic in mkdir_internals() (caused a panic
2498 when combined with --enable-developer).
2499 * BUG 830: Protect against crashes due to bad character
2503 o Petri Asikainen <paca@sci.fi>
2504 * BUG 330, 387:Fix single valued attribute updates when
2505 working with Novell NDS.
2508 o Andrew Bartlett <abartlet@samba.org>
2509 * Correctly handle per-pipe NTLMSSP inside a NULL session.
2510 * Fix segfault in gencache
2511 * Fix early free() of encrypted_session_key.
2512 * Change DC lookup routines to more carefully separate
2513 DNS names (realms) from NetBIOS domain names.
2514 * Add new sid_to_dn() function for internal winbindd use.
2515 * Refactor cli_ds_enum_domain_trusts().
2516 * BUG 707: Implement range retrieval of ADS attributes (based
2517 on work from Volker <vl@samba.org> and Guenther Deschner
2519 * Automatically initialize the signing engine if a session key
2521 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
2522 encoded strings, only form input in SWAT.
2523 * Resets the NTLMSSP state for new negotiate packets.
2524 * Add 2-byte alignments in net_samlogon() queries to parse
2525 odd-length plain text passwords.
2526 * Allow Windows groups with no members in winbindd.
2527 * Allow normal authentication in the absence of a server
2528 generated session key.
2529 * More optimizations for looking up UNIX group lists.
2530 * Clean up error codes and return values for pam_winbindd
2531 and winbindd PAM interface.
2532 * Fix string return values in ntlm_auth tool.
2533 * Fix segfault when 'security = ads' but no realm is defined.
2534 * BUG 722: Allow winbindd to map machine accounts to uids.
2535 * More cleanups for winbindd's find_our_domain().
2536 * More clearly detect whether a domain controller is an NT4
2537 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
2538 * Increase separation between DNS queries for hosts and queries
2539 for AD domain controllers.
2540 * Include additional NT_STATUS to PAM error mappings.
2541 * Password initialization fixes.
2544 o Justin Baugh <justin.baugh@request.com>
2545 * BUG 948: Implement missing functions required for FreeBSD
2546 nss_winbind support.
2549 o Alexander Bokovoy <ab@samba.org>
2550 * BUG 922: Make sure enable fast path for strlower_m() and
2554 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
2555 * Fix crash when using 'security = server' and 'encrypt
2556 passwords = no' by always initializing the session key.
2559 o Dmitry Butskoj <buc@odusz.elektra.ru>
2560 * Fix for special files being hidden from admins.
2563 o Gerald (Jerry) Carter <jerry@samba.org>
2564 * Fix bug in the lanman session key generation. Caused
2565 "decode_pw: incorrect password length" error messages.
2566 * Save the right case for the located user name in
2567 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
2568 * BUG 897: Add well known rid for pre win2k compatible access
2570 * BUG 887: Correct typo in delete user script example.
2571 * Use short lived TALLOC_CTX* for allocating printer objects
2572 from the print handle cache.
2573 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
2574 * Fix several warnings reported by the SUN Forte C compiler.
2575 * Fully control DNS queries for AD DC's using 'name resolve order'.
2576 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
2577 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
2578 * BUG 936: fix bind credentials for schannel binds in smbd.
2579 * BUG 446: Fix output of smbclient for better compatibility
2580 with scripts based on the 2.2 version (including Amanda).
2581 * BUG 891, 949: Fedora packaging fixes.
2582 * Fix bug that caused rpcclient to incorrectly retrieve
2583 the SID for a server (this causing all calls that required
2584 this information to fail).
2585 * BUG 977: Don't create a homes share for a user if a static
2586 share already exists by the same name.
2587 * Removed unused smb.conf options.
2588 * Password initialization fixes.
2589 * Set the disable flag for template accounts created by
2591 * Disable any account has no passwords and does not have the
2592 ACB_PWNOTREQ bit set.
2595 o Guenther Deschner <gd@suse.com>
2596 * Install smbwrapper.so should be put into the $(libdir)
2598 * Add the capability to specify the new user password
2599 for "net ads password" on the command line.
2600 * Correctly detect AFS headers on SuSE.
2603 o James Flemer <jflemer@uvm.edu>
2604 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
2605 HAVE_SYS_ATTRIBUTES_H.
2608 o Luke Howard <lukeh@PADL.COM>
2609 * Fix segfault in session setup reply caused by a early free().
2612 o Stoian Ivanov <sdr@bultra.com>
2613 * Implement grepable output for smbclient -L.
2616 o LaMont Jones <lamont@debian.org>
2617 * BUG 225328 (Debian): Correct false failure LFS test that resulted
2618 in _GNU_SOURCE not being defined (thus resulting in strndup()
2622 o Volker Lendecke <vl@samba.org>
2623 * BUG 583: Ensure that user names always contain the short
2624 version of the domain name.
2625 * Fix our parsing of the LDAP uri.
2626 * Don't show the 'afs username map' in the SWAT basic view.
2627 * Fix SMB signing issues in relation to failed NTLMSSP logins.
2628 * BUG 924: Fix return codes in smbtorture harness.
2629 * Always lower-case usernames before handing it to AFS code.
2630 * Add a German translation for SWAT.
2631 * Fix a segfaults in winbindd.
2632 * Fix the user's domain passed to register_vuid() from
2633 reply_spnego_kerberos().
2634 * Add NSS example code in nss_winbind to convert UNIX
2635 id's <-> Windows SIDs.
2636 * Display more descriptive error messages for login via 'net'.
2637 * Fix compiler warning in the net tool.
2638 * Fix length bug when decoding base64 strings.
2639 * Ensure we don't call getpwnam() inside a loop that is iterating
2640 over users with getpwent(). This broke on glibc 2.3.2.
2643 o Herb Lewis <herb@samba.org>
2644 * Fix bit rot in psec.
2647 o Jianliang Lu <j.lu@tiesse.com>
2648 * Ensure we delete the group mapping before calling the delete
2650 * Define well known RID for managing the "Power Users" group.
2651 * BUG 381: check builtin (not local) group SID when updating
2653 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
2657 o John Klinger <john.klinger@lmco.com>
2658 * Implement initgroups() call in nss_winbind on Solaris.
2661 o Jim McDonough <jmcd@us.ibm.com>
2662 * Fix regression in net rpc join caused by recent changes
2663 to cli_lsa_query_info_policy().
2664 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
2668 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
2669 * BUG 570: Ensure that configure honors the LDFLAGS variable.
2672 o Stefan Metzmacher <metze@samba.org>
2673 * Implement LDAP rebind sleep patch.
2674 * Revert to 2.2 quota code because of so many broken quota files
2676 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
2677 XFS_USER_QUOTA -> USRQUOTA
2678 XFS_GROUP_QUOTA -> GRPQUOTA
2679 * Fix disk_free calculation with group quotas.
2680 * Add debug class 'quota' and a lot of DEBUG()'s
2682 * Fix sys_chown() when no chown() is present.
2683 * Add SIGABRT to fault handling in order to catch got a
2684 backtrace if an error occurs the OpenLDAP client libs.
2688 * Allow an existing LDAP machine account to be re-used when
2689 joining an AD domain.
2692 o James Peach <jpeach@sgi.com>
2693 * BUG 889: Change smbd to use pread/pwrite on platforms that
2694 support these calls. Can lead to a significant speed increase.
2697 o Tim Potter <tpot@samba.org>
2698 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
2699 * BUG 924: Fix typo in RW2 torture test.
2702 o Richard Sharpe <rsharpe@samba.org>
2703 * Small fixes to torture.c to cleanup the error handling
2704 and prevent crashes.
2707 o J. Tournier <jerome.tournier@IDEALX.com>
2708 * Small fixes for the smbldap-tool scripts.
2711 o Andrew Tridgell <tridge@samba.org>
2712 * Fix src len check in pull_usc2().
2715 o Jelmer Vernooij <jelmer@samba.org>
2716 * Put functions for generating SQL queries in pdb_sql.c
2717 * Add pgSQL backend (based on patch by Hamish Friedlander)
2718 * BUG 908: Fix -s option to smbcontrol.
2719 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
2720 * Fix for libnss_wins on IRIX platforms.
2721 * Fix swatdir for --with-fhs.
2724 --------------------------------------------------
2726 =============================
2727 Release Notes for Samba 3.0.1
2729 =============================
2731 Some of the more common bugs in 3.0.0 addressed in the release
2734 o Substitution problems with smb.conf variables.
2735 o Errors in return codes which caused some applications
2736 to fail to open files.
2737 o General Protection Faults on Windows 2000/XP clients
2738 using Samba point-n-print features.
2739 o Several miscellaneous crash bugs.
2740 o Access problems when enumerating group mappings are
2741 stored in an LDAP Directory.
2742 o Several common SWAT bugs when writing changes to
2744 o Internal inconsistencies when 'winbind use default
2750 ----------------------
2752 Parameter Name Action
2753 -------------- ------
2754 hide local users Removed
2755 mangled map Deprecated
2756 mangled stack Removed
2757 passwd chat timeout New
2763 o Change the interface for init_unistr2 to not take a length
2764 but a flags field. We were assuming that
2765 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
2766 o Allow d_printf() to handle strings with escaped quotation
2767 marks since the msg file includes the escape character (bug 489).
2768 o Fix bad html table row termination in SWAT wizard code (bug 413).
2769 o Fix to parse the level-2 strings.
2770 o Fix for "valid users = %S" in [homes]. Fix read/write
2772 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
2773 This is the same way AC_CHECK_LIB works (bug 508).
2774 o Testparm output fixes for clarity.
2775 o Fix broken wins hook functionality -- i18n bug (bug 528).
2776 o Take care of condition where DOS and NT error codes must differ.
2777 o Default to using only built-in charsets when a working iconv
2778 implementation cannot be located.
2779 o Wrap internals of sys_setgroups() so the sys_XX() call can
2780 be done unconditionally (bug 550).
2781 o Remove duplicate smbspool link on SWAT's front page (bug 541).
2782 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
2783 --enable-debug=[yes|no] works correctly.
2784 o Allow ^C to interrupt smbpasswd if using our getpass
2785 (e.g. smbpasswd command).
2786 o Support signing only on RPC's (bug 167).
2787 o Correct bug that prevented Excel 2000 clients from opening
2788 files marked as read-only.
2789 o Portability fix bugs 546 - 549).
2790 o Explicitly initialize the value of AR for vendor makes that don't
2791 do this (e.g. HPUX 11). (bug 552).
2792 o More i18n fixes for SWAT (bug 413).
2793 o Change the cwd before the postexec script to ensure that a
2794 umount will succeed.
2795 o Correct double free that caused winbindd to crash when a DC
2796 is rebooted (bug 437).
2797 o Fix incorrect mode sum (bug 562).
2798 o Canonicalize SMB_INFO_ALLOCATION in the same was as
2799 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
2800 o Add script to generate *msg files.
2801 o Add Dutch SWAT translation file.
2802 o Make sure to call get_user_groups() with the full winbindd
2803 name for a user if he/she has one (bug 406).
2804 o Fix up error code returns from Samba4 tester. Ensure invalid
2805 paths are validated the same way.
2806 o Allow Samba3 to pass the Samba4 RAW-READ tests.
2807 o Refuse to configure if --with-expsam=$BACKEND was used but no
2808 libraries were found for $BACKEND.
2809 o Move sysquotas autoconf tests to a separate file.
2810 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
2812 o Make sure that the files that contain the static_init_$subsystem;
2813 macro get recompiled after configure by removing the object
2815 o Ensure canceling a blocking lock returns the correct error
2817 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
2818 o Updated Japanese welcome file in SWAT.
2819 o Fix to nt-time <-> unix-time functions reversible.
2820 o Ensure that winbindd uses the the escaped DN when querying
2822 o Fix portability issues when compiling (bug 505, 550)
2823 o Compile fix for tdbbackup when Samba needs to override
2824 non-C99 compliant implementations of snprintf().
2825 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
2826 o Make sure we break out of samsync loop on error.
2827 o Ensure error code path doesn't free unmalloc()'d memory
2829 o Add configure test for krb5_keytab_entry keyblock vs key
2832 o Modified testparm so that all output so all debug output goes
2833 to stderr, and all file processing goes to stdout.
2834 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
2836 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
2837 we have a devmode before copying a string to the devicename.
2838 o Support mapping REALM.COM\user to a local user account (without
2839 running winbindd) for compatibility with 2.2.x release.
2840 o Ensure we don't use mmap() on blacklisted systems.
2841 o fixed a number of bugs and memory leaks in the AIX
2843 o Call initgroups() in SWAT before becomming the user so that
2844 secondary group permissions can be used when writing to
2846 o Fix signing problems when reverse connecting back to a
2847 client for printer notify
2848 o Fix signing problems caused by a miss-sequence bug.
2849 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
2850 Fixes NEXUS tools running on Win9x clients (bug 64).
2851 o Don't leave the domain field uninitialized in cli_lsa.c if some
2852 SID could not be mapped.
2853 o Fix segfault in mount.cifs helper when there is no options
2854 specified during mount.
2855 o Change the \n after the password prompt to go to tty instead
2856 of stdout (bug 668).
2857 o Stop net -P from prompting for machine account password (bug 451).
2858 o Change in behavior to Not only change the effective uid but also
2859 the real uid when becoming unprivileged.
2860 o Cope with Exchange 5.5 cleartext pop password auth.
2861 o New files for support of initshutdown pipe. Win2k doesn't
2862 respond properly to all requests on the winreg pipe, so we need
2863 to handle this new pipe (bug 534).
2864 o Added more va_copy() checks in configure.in.
2865 o Include fixes for libsmbclient build problems.
2866 o Missing UNIX -> DOS codepage conversion in lanman.c.
2867 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
2868 o Parameterize the listen backlog in smbd and make it larger by
2869 default. A backlog of 5 is way too small these days.
2870 o Check for an invalid fid before dereferencing the fsp pointer
2872 o Remove invalid memory frees and return codes in pdb_ldap.c.
2873 o Prompt for password when invoking --set-auth-user and no
2875 o Bind the nmbd sending socket to the 'socket address'.
2876 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
2877 $LDFLAGS occurs before any library specification (bug 661).
2878 o Fix large number of printf() calls for 64-bit size_t.
2879 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
2880 keyblock in the krb5 structs.
2881 o Remove #include <compat.h> in hopes to avoid problems with
2882 apache header files.
2883 o Correct winbindd build problems on HP-UX 11.
2884 o Lowercase netgroups lookups (bug 703).
2885 o Use the actual size of the buffer in strftime instead of a made
2886 up value which just happens to be less than sizeof(fstring).
2888 o Add ldaplibs to pdbedit link line (bug 651).
2889 o Fix crash bug in smbclient completion (bug 659).
2890 o Fix packet length for browse list reply (bug 771).
2891 o Fix coredump in cli_get_backup_list().
2892 o Make sure that we expand %N (bug 612).
2893 o Allow rpcclient adddriver command to specify printer driver
2895 o Compile tdbdump by default.
2896 o Apply patches to fix iconv detection for FreeBSD.
2897 o Do not allow the 'guest account' to be added to a passdb backend
2898 using smbpasswd or pdbedit (bug 624).
2899 o Save LDFLAGS during iconv detection (bug 57).
2900 o Run krb5 logins through the username map if the winbindd
2901 lookup fails (bug 698).
2902 o Add const for lp_set_name_resolve_order() to avoid compiler
2904 o Add support for the %i macro in smb.conf to stand in for the for
2905 the local IP address to which a client connected.
2906 o Allow winbindd to match local accounts to domain SID when
2907 'winbind trusted domains only = yes' (bug 680).
2908 o Remove code in idmap_ldap that searches the user suffix and group
2909 suffix. It's not needed and provides inconsistent functionality
2910 from the tdb backend.
2911 o Patch to handle munged dial string for Windows 2000 TSE.
2912 Thanks to Gaz de France, Direction de la Recherche, Service
2913 Informatique Métier for their supporting this work by Aurelien
2914 Degrémont <adegremont@idealx.com>.
2915 o Correct the "smbldap_open: cannot access when not root error"
2916 messages when looking up group information (bug 281).
2917 o Skip over the winbind separator when looking up a user.
2918 This fixes the bug that prevented local users from
2919 matching an AD user when not running winbindd (bug 698).
2920 o Fix a problem with configure on *BSD systems. Make sure
2921 we add -liconv etc to LDFLAGS.
2922 o Fix core dump bug when "security = server" and the authentication
2924 o Correct crash bug due to an empty munged dial string.
2925 o Show files locked by a specific user (smbstatus -u 'user')
2927 o Fix bug preventing print jobs from display in the queue
2928 monitor used by Windows NT and later clients (bug 660).
2929 o Fix several reported problems with point-n-print from
2930 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
2931 reply (bug 338, 527 & 643).
2932 o Fix a handful of potential memory leaks in the LDAP code used
2933 by ldapsam[_compat] and the LDAP idmap backend.
2934 o Fix for pdbedit error code returns (bug 763).
2935 o Make sure we only enumerate group mapping entries (not
2936 /etc/group) even when doing local aliases.
2937 o Relax check on the pipe name in a dce/rpc bind response to work
2938 around issues with establishing trusts to a Windows 2003 domain.
2939 o Ensure we mangle names ending in '.' in hash2 mangling method.
2940 o Correct parsing issues with munged dial string.
2941 o Fix bugs in quota support for XFS.
2942 o Add a cleaner method for applications that need to provide
2943 name->SID mappings to do this via NSS rather than having to
2944 know the winbindd pipe protocol.
2945 o Adds a variant of the winbindd_getgroups() call called
2946 winbindd_getusersids() that provides direct SID->SIDs listing of
2947 a users supplementary groups. This is enough to allow non-Samba
2948 applications to do ACL checking.
2949 o Make sure we don't append the 'ldap suffix' when writing out the
2950 'ldap XXX suffix' values in SWAT (bug 328).
2951 o Fix renames across file systems.
2952 o Ensure that items in a list of strings containing whitespace are
2953 written out surrounded by single quotes. This means that both
2954 double and single quotes are now used to surround strings in
2956 o Enable SWAT to correctly determine if winbindd is running (bug
2958 o Include WWW-Authenticate field in 401 response for bad auth
2960 o Add support for NTLM2 (NTLMv2 session security).
2961 o Add support for variable-length session keys.
2962 o More privilege fixes for group enumeration in LDAP (bug 281).
2963 o Use the dns name (or IP) as the originating client name when
2964 using CUPS (bug 467).
2965 o Fix various SMB signing bugs.
2966 o Fix ACL propagation on a DFS root (bug 263).
2967 o Disable NTLM2 for RPC pipes.
2968 o Allow the client to specify the NTLM2 flags got NTLMSSP
2970 o Change the name of the job passed off to cups from "Test Page"
2971 to "smbprn.00000033 Test Page" so that we can get the smb
2972 jobid back. This allow users to delete jobs with cups printing
2973 backend (partial work on bug 770).
2974 o Fix build of winbindd with static pdb modules.
2975 o Retrieve the correct ACL group bits if the file has an ACL
2977 o Implement "net rpc group members": Get members of a domain group
2978 in human-readable format.
2979 o Add MacOSX (Darwin) specific charset module code.
2980 o Use samr_dispinfo(level == 1) for enumerating domain users so we
2981 can include the full name in gecos field (bug 587).
2982 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
2983 o Implement 'net rpc group list [global|local|builtin]*' for a
2984 select listing of the respective user databases.
2985 o Don't automatically set NT status code flag unless client tells
2987 o Add 'net status [sessions|shares] [parseable]'.
2988 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
2990 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
2992 o Fix inverted logic in hosts allow/deny checks caused by
2993 s/strcmp/strequal/ (bug 846).
2994 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
2995 o Fix typo in 'hash' mangling algorithm.
2996 o Support munged dial for ldapsam (bug 800).
2997 o Fix process_incoming_data() to return the number of bytes handled
2998 this call whether we have a complete PDU or not; fixes bug
2999 with multiple PDU request rpc's broken over SMBwriteX calls
3001 o Fix incorrect smb flags2 for connections to pre-NT servers
3002 (causes smbclient to fail to OS2 for example) (bug 821).
3003 o Update version string in smbldap-tools Makefile to 0.8.2.
3004 o Correct a problem with "net rpc vampire" mis-parsing the
3005 alias member info reply.
3006 o Ensure the ${libdir} is created by the installclientlib script.
3007 o Fix detection of Windows 2003 client architecture in the smb.conf
3009 o Ensure that smbd calls the add user script for a missing UNIX
3010 user on kerberos auth call (bug 445).
3011 o Fix bugs in hosts allow/deny when using a mismatched
3012 network/netmask pair.
3013 o Protect alloc_sub_basic() from crashing when the source string
3014 is NULL (partial work on bug 687).
3015 o Fix spinlocks on IRIX.
3016 o Corrected some bad destination paths when running "configure
3018 o Add packaging files for Fedora Core 1.
3019 o Correct bug in SWAT install script for non-english languages.
3020 o Support character set ISO-8859-1 internally (bug 558).
3021 o Fixed more LDAP access errors when looking up group mappings
3023 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
3024 resolution to fail on local files on on domain members
3026 o Fix uninitialized variable in passdb.c.
3027 o Fix formal parameter type in get_static() in nsswitch/wins.c.
3028 o Fix problem mounting directories when mount.cifs is installed
3029 with the setuid bit on.
3030 o Fix bug that prevent --mandir from overriding the defaults
3031 given in the --with-fhs macro.
3032 o Fix bug in in-memory Kerberos keytab detection routines
3037 ######################################################################
3039 The original 3.0.0 release notes follow
3040 =======================================
3041 WHATS NEW IN Samba 3.0.0
3043 =======================================
3049 1) Active Directory support. Samba 3.0 is now able to
3050 join a ADS realm as a member server and authenticate
3051 users using LDAP/Kerberos.
3053 2) Unicode support. Samba will now negotiate UNICODE on the wire
3054 and internally there is now a much better infrastructure for
3055 multi-byte and UNICODE character sets.
3057 3) New authentication system. The internal authentication system
3058 has been almost completely rewritten. Most of the changes are
3059 internal, but the new auth system is also very configurable.
3061 4) New default filename mangling system.
3063 5) A new "net" command has been added. It is somewhat similar to
3064 the "net" command in windows. Eventually we plan to replace
3065 numerous other utilities (such as smbpasswd) with subcommands
3068 6) Samba now negotiates NT-style status32 codes on the wire. This
3069 improves error handling a lot.
3071 7) Better Windows 2000/XP/2003 printing support including publishing
3072 printer attributes in active directory.
3074 8) New loadable module support for passdb backends and character
3077 9) New default dual-daemon winbindd support for better performance.
3079 10) Support for migrating from a Windows NT 4.0 domain to a Samba
3080 domain and maintaining user, group and domain SIDs.
3082 11) Support for establishing trust relationships with Windows NT 4.0
3085 12) Initial support for a distributed Winbind architecture using
3086 an LDAP directory for storing SID to uid/gid mappings.
3088 13) Major updates to the Samba documentation tree.
3090 14) Full support for client and server SMB signing to ensure
3091 compatibility with default Windows 2003 security settings.
3093 15) Improvement of ACL mapping features based on code donated by
3094 Andreas Grünbacher.
3097 Plus lots of other improvements!
3100 Additional Documentation
3101 ------------------------
3103 Please refer to Samba documentation tree (included in the docs/
3104 subdirectory) for extensive explanations of installing, configuring
3105 and maintaining Samba 3.0 servers and clients. It is advised to
3106 begin with the Samba-HOWTO-Collection for overviews and specific
3107 tasks (the current book is up to approximately 400 pages) and to
3108 refer to the various man pages for information on individual options.
3110 We are very glad to be able to include the second edition of
3111 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
3112 (O'Reilly & Associates) in this release. The book is available
3113 on-line at http://samba.org/samba/docs/ and is included with
3114 the Samba Web Administration Tool (SWAT). Thanks to the authors and
3115 publisher for making "Using Samba" under the GNU Free Documentation
3119 ######################################################################
3120 Upgrading from a previous Samba 3.0 beta
3121 ########################################
3123 Beginning with Samba 3.0.0beta3, the RID allocation functions
3124 have been moved into winbindd. Previously these were handled
3125 by each passdb backend. This means that winbindd must be running
3126 to automatically allocate RIDs for users and/or groups. Otherwise,
3127 smbd will use the 2.2 algorithm for generating new RIDs.
3129 If you are using 'passdb backend = tdbsam' with a previous Samba
3130 3.0 beta release (or possibly alpha), it may be necessary to
3131 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
3132 to winbindd_idmap.tdb. To do this:
3134 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
3136 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
3138 3) run: (note that 'tdb>' is the tool's prompt for input)
3140 root# ./tdbtool /usr/local/samba/private/passdb.tdb
3141 tdb> show RID_COUNTER
3145 [000] 0A 52 00 00 .R.
3147 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
3151 If you are using 'passdb backend = ldapsam', it will be necessary to
3152 store idmap entries in the LDAP directory as well (i.e. idmap backend
3153 = ldap). Refer to the 'net idmap' command for more information on
3154 migrating SID<->UNIX id mappings from one backend to another.
3156 If the RID_COUNTER record does not exist, then these instructions are
3157 unneccessary and the new RID_COUNTER record will be correctly generated
3162 ########################
3163 Upgrading from Samba 2.2
3164 ########################
3166 This section is provided to help administrators understand the details
3167 involved with upgrading a Samba 2.2 server to Samba 3.0.
3173 Many of the options to the GNU autoconf script have been modified
3174 in the 3.0 release. The most noticeable are:
3176 * removal of --with-tdbsam (is now included by default; see section
3177 on passdb backends and authentication for more details)
3179 * --with-ldapsam is now on used to provided backward compatible
3180 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
3181 backend and authentication section for more details
3183 * inclusion of non-standard passdb modules may be enabled using
3184 --with-expsam. This includes an XML backend and a mysql backend.
3186 * removal of --with-msdfs (is now enabled by default)
3188 * removal of --with-ssl (no longer supported)
3190 * --with-utmp now defaults to 'yes' on supported systems
3192 * --with-sendfile-support is now enabled by default on supported
3199 This section contains a brief listing of changes to smb.conf options
3200 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
3201 complete descriptions of new or modified parameters.
3203 Removed Parameters (order alphabetically):
3206 * alternate permissions
3209 * code page directory
3211 * domain admin group
3212 * domain guest group
3213 * force unknown acl user
3219 * printer driver file
3220 * printer driver location
3222 * source environment
3230 New Parameters (new parameters have been grouped by function):
3234 * abort shutdown script
3237 User and Group Account Management
3238 ---------------------------------
3240 * add machine script
3241 * add user to group script
3242 * algorithmic rid base
3243 * delete group script
3244 * delete user from group script
3246 * set primary group script
3252 * passwd chat timeout
3256 * client lanman auth
3257 * client NTLMv2 auth
3263 * paranoid server security
3272 * hide special files
3273 * hide unwriteable files
3275 * kernel change notify
3285 * max reported print jobs
3287 UNICODE and Character Sets
3288 --------------------------
3294 SID to uid/gid Mappings
3295 -----------------------
3299 * winbind enable local accounts
3300 * winbind trusted domains only
3301 * template primary group
3302 * enable rid algorithm
3309 * ldap machine suffix
3311 * ldap replication sleep
3314 General Configuration
3315 ---------------------
3319 Modified Parameters (changes in behavior):
3321 * encrypt passwords (enabled by default)
3322 * mangling method (set to 'hash2' by default)
3325 * restrict anonymous (integer value)
3326 * security (new 'ads' value)
3327 * strict locking (enabled by default)
3328 * unix extensions (enabled by default)
3329 * winbind cache time (increased to 5 minutes)
3330 * winbind uid (deprecated in favor of 'idmap uid')
3331 * winbind gid (deprecated in favor of 'idmap gid')
3337 This section contains brief descriptions of any new databases
3338 introduced in Samba 3.0. Please remember to backup your existing
3339 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
3340 upgrade databases as they are opened (if necessary), but downgrading
3341 from 3.0 to 2.2 is an unsupported path.
3343 Name Description Backup?
3344 ---- ----------- -------
3345 account_policy User policy settings yes
3346 gencache Generic caching db no
3347 group_mapping Mapping table from Windows yes
3348 groups/SID to unix groups
3349 winbindd_idmap ID map table from SIDS to UNIX yes
3351 namecache Name resolution cache entries no
3352 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
3353 returned as part of a successful
3354 net_sam_logon request
3355 printing/*.tdb Cached output from 'lpq no
3356 command' created on a per print
3358 registry Read-only samba registry skeleton no
3359 that provides support for exporting
3360 various db tables via the winreg RPCs
3366 The following issues are known changes in behavior between Samba 2.2 and
3367 Samba 3.0 that may affect certain installations of Samba.
3369 1) When operating as a member of a Windows domain, Samba 2.2 would
3370 map any users authenticated by the remote DC to the 'guest account'
3371 if a uid could not be obtained via the getpwnam() call. Samba 3.0
3372 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
3373 current work around to re-establish the 2.2 behavior.
3375 2) When adding machines to a Samba 2.2 controlled domain, the
3376 'add user script' was used to create the UNIX identity of the
3377 machine trust account. Samba 3.0 introduces a new 'add machine
3378 script' that must be specified for this purpose. Samba 3.0 will
3379 not fall back to using the 'add user script' in the absence of
3380 an 'add machine script'
3383 ######################################################################
3384 Passdb Backends and Authentication
3385 ##################################
3387 There have been a few new changes that Samba administrators should be
3388 aware of when moving to Samba 3.0.
3390 1) encrypted passwords have been enabled by default in order to
3391 inter-operate better with out-of-the-box Windows client
3392 installations. This does mean that either (a) a samba account
3393 must be created for each user, or (b) 'encrypt passwords = no'
3394 must be explicitly defined in smb.conf.
3396 2) Inclusion of new 'security = ads' option for integration
3397 with an Active Directory domain using the native Windows
3398 Kerberos 5 and LDAP protocols.
3400 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
3401 type which is neccessary for servers on which the
3402 administrator password has not been changed, or kerberos-enabled
3403 SMB connections to servers that require Kerberos SMB signing.
3404 Besides this one difference, either MIT or Heimdal Kerberos
3405 distributions are usable by Samba 3.0.
3408 Samba 3.0 also includes the possibility of setting up chains
3409 of authentication methods (auth methods) and account storage
3410 backends (passdb backend). Please refer to the smb.conf(5)
3411 man page for details. While both parameters assume sane default
3412 values, it is likely that you will need to understand what the
3413 values actually mean in order to ensure Samba operates correctly.
3415 The recommended passdb backends at this time are
3417 * smbpasswd - 2.2 compatible flat file format
3418 * tdbsam - attribute rich database intended as an smbpasswd
3419 replacement for stand alone servers
3420 * ldapsam - attribute rich account storage and retrieval
3421 backend utilizing an LDAP directory.
3422 * ldapsam_compat - a 2.2 backward compatible LDAP account
3425 Certain functions of the smbpasswd(8) tool have been split between the
3426 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
3427 utility. See the respective man pages for details.
3430 ######################################################################
3434 This section outlines the new features affecting Samba / LDAP
3440 A new object class (sambaSamAccount) has been introduced to replace
3441 the old sambaAccount. This change aids us in the renaming of
3442 attributes to prevent clashes with attributes from other vendors.
3443 There is a conversion script (examples/LDAP/convertSambaAccount) to
3444 modify and LDIF file to the new schema.
3448 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
3449 $ convertSambaAccount --sid=<Domain SID> \
3450 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
3451 --changetype=[modify|add]
3453 The <DOM SID> can be obtained by running 'net getlocalsid
3454 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
3455 the format of the generated LDIF output--either create new entries
3456 or modify existing entries.
3458 The old sambaAccount schema may still be used by specifying the
3459 "ldapsam_compat" passdb backend. However, the sambaAccount and
3460 associated attributes have been moved to the historical section of
3461 the schema file and must be uncommented before use if needed.
3462 The 2.2 object class declaration for a sambaAccount has not changed
3463 in the 3.0 samba.schema file.
3465 Other new object classes and their uses include:
3467 * sambaDomain - domain information used to allocate rids
3468 for users and groups as necessary. The attributes are added
3469 in 'ldap suffix' directory entry automatically if
3470 an idmap uid/gid range has been set and the 'ldapsam'
3471 passdb backend has been selected.
3473 * sambaGroupMapping - an object representing the
3474 relationship between a posixGroup and a Windows
3475 group/SID. These entries are stored in the 'ldap
3476 group suffix' and managed by the 'net groupmap' command.
3478 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
3479 automatically and contains the next available 'idmap uid' and
3482 * sambaIdmapEntry - object storing a mapping between a
3483 SID and a UNIX uid/gid. These objects are created by the
3484 idmap_ldap module as needed.
3486 * sambaSidEntry - object representing a SID alone, as a Structural
3487 class on which to build the sambaIdmapEntry.
3490 New Suffix for Searching
3491 ------------------------
3493 The following new smb.conf parameters have been added to aid in directing
3494 certain LDAP queries when 'passdb backend = ldapsam://...' has been
3497 * ldap suffix - used to search for user and computer accounts
3498 * ldap user suffix - used to store user accounts
3499 * ldap machine suffix - used to store machine trust accounts
3500 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
3501 * ldap idmap suffix - location of sambaIdmapEntry objects
3503 If an 'ldap suffix' is defined, it will be appended to all of the
3504 remaining sub-suffix parameters. In this case, the order of the suffix
3505 listings in smb.conf is important. Always place the 'ldap suffix' first
3508 Due to a limitation in Samba's smb.conf parsing, you should not surround
3509 the DN's with quotation marks.
3515 Samba 3.0 supports an ldap backend for the idmap subsystem. The
3516 following options would inform Samba that the idmap table should be
3517 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
3522 idmap backend = ldap:ldap://onterose/
3523 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
3524 idmap uid = 40000-50000
3525 idmap gid = 40000-50000
3527 This configuration allows winbind installations on multiple servers to
3528 share a uid/gid number space, thus avoiding the interoperability problems
3529 with NFS that were present in Samba 2.2.
3533 ######################################################################
3534 Trust Relationships and a Samba Domain
3535 ######################################
3537 Samba 3.0.0beta2 is able to utilize winbindd as the means of
3538 allocating uids and gids to trusted users and groups. More
3539 information regarding Samba's support for establishing trust
3540 relationships can be found in the Samba-HOWTO-Collection included
3541 in the docs/ directory of this release.
3543 First create your Samba PDC and ensure that everything is
3544 working correctly before moving on the trusts.
3546 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
3547 4.0 domain named WINDOWS:
3549 1) create the trust account for SAMBA in "User Manager for Domains"
3550 2) connect the trust from the Samba domain using
3551 'net rpc trustdom establish GLASS'
3553 To create a trustlationship with SAMBA as the trusted domain:
3555 1) create the initial trust account for GLASS using
3556 'smbpasswd -a -i GLASS'. You may need to create a UNIX
3557 account for GLASS$ prior to this step (depending on your
3558 local configuration).
3559 2) connect the trust from a WINDOWS DC using "User Manager
3562 Now join winbindd on the Samba PDC to the SAMBA domain using
3563 the normal steps for adding a Samba server to an NT4 domain:
3564 (note that smbd & nmbd must be running at this point)
3566 root# net rpc join -U root
3567 Password: <enter root password from smbpasswd file here>
3569 Start winbindd and test the join with 'wbinfo -t'.
3571 Now test the trust relationship by connecting to the SAMBA DC
3572 (e.g. POGO) as a user from the WINDOWS domain:
3574 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
3577 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
3579 $ smbclient //crystal/netlogon -U root -W WINDOWS
3582 ######################################################################
3586 Beginning with Samba3.0.0beta3, winbindd has been given new account
3587 manage functionality equivalent to the 'add user script' family of
3588 smb.conf parameters. The idmap design has also been changed to
3589 centralize control of foreign SID lookups and matching to UNIX
3593 Brief Description of Changes
3594 ----------------------------
3596 1) The sid_to_uid() family of functions (smbd/uid.c) have been
3597 reverted to the 2.2.x design. This means that when resolving a
3598 SID to a UID or similar mapping:
3600 a) First consult winbindd
3601 b) perform a local lookup only if winbindd fails to
3602 return a successful answer
3604 There are some variations to this, but these two rules generally
3607 2) All idmap lookups have been moved into winbindd. This means that
3608 a server must run winbindd (and support NSS) in order to achieve
3609 any mappings of SID to dynamically allocated UNIX ids. This was
3610 a conscious design choice.
3612 3) New functions have been added to winbindd to emulate the 'add user
3613 script' family of smbd functions without requiring that external
3614 scripts be defined. This functionality is controlled by the 'winbind
3615 enable local accounts' smb.conf parameter (enabled by default).
3617 However, this account management functionality is only supported
3618 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
3619 must be shared among multiple Samba servers (such as a PDC and BDCs),
3620 it will be necessary to define your own 'add user script', et. al.
3621 programs that place the accounts/groups in some form of directory
3622 such as NIS or LDAP. This requirement was deemed beyond the scope
3623 of winbind's account management functions. Solutions for
3624 distributing UNIX system information have been deployed and tested
3625 for many years. We saw no need to reinvent the wheel.
3627 4) A member of a Samba controlled domain running winbindd is now able
3628 to map domain users directly onto existing UNIX accounts while still
3629 automatically creating accounts for trusted users and groups. This
3630 behavior is controlled by the 'winbind trusted domains only' smb.conf
3631 parameter (disabled by default to provide 2.2.x winbind behavior).
3633 5) Group mapping support is wrapped in the local_XX_to_XX() functions
3634 in smbd/uid.c. The reason that group mappings are not included
3635 in winbindd is because the purpose of Samba's group map is to
3636 match any Windows SID with an existing UNIX group. These UNIX
3637 groups can be created by winbindd (see next section), but the
3638 SID<->gid mapping is retreived by smbd, not winbindd.
3644 * security = server running winbindd to allocate accounts on demand
3646 * Samba PDC running winbindd to handle the automatic creation of UNIX
3647 identities for machine trust accounts
3649 * Automtically creating UNIX user and groups when migrating a Windows NT
3650 4.0 PDC to a Samba PDC. Winbindd must be running when executing
3651 'net rpc vampire' for this to work.
3654 ######################################################################
3658 * There are several bugs currently logged against the 3.0 codebase
3659 that affect the use of NT 4.0 GUI domain management tools when run
3660 against a Samba 3.0 PDC. This bugs should be released in an early
3663 Please refer to https://bugzilla.samba.org/ for a current list of bugs
3664 filed against the Samba 3.0 codebase.
3667 ######################################################################
3668 Reporting bugs & Development Discussion
3669 #######################################
3671 Please discuss this release on the samba-technical mailing list or by
3672 joining the #samba-technical IRC channel on irc.freenode.net.
3674 If you do report problems then please try to send high quality
3675 feedback. If you don't provide vital information to help us track down
3676 the problem then you will probably be ignored.
3678 A new bugzilla installation has been established to help support the
3679 Samba 3.0 community of users. This server, located at
3680 https://bugzilla.samba.org/, has replaced the older jitterbug server
3681 previously located at http://bugs.samba.org/.