summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s3/WHATSNEW: Update changes since 3.4.0pre1.samba-3.4.0pre2Karolin Seeger2009-06-021-0/+5
| | | | | Karolin (cherry picked from commit 36b8bbb0328bbcccdc6e9fe99ae4933c916885da)
* s3/getdcname: Fix 'net' crash.Kumar Thangavelu2009-06-021-2/+2
| | | | | | | | | | 'net' command crashed when attempting to join a domain. This occurred in a very specific case where the DC had multiple IPs and one of the IPs was invalid. Signed-off-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 795692bd9546b91647ea96cc43ebb5c8efc0aaf2) (cherry picked from commit 1b401a1b5374d037757954bb023287fa57b1c9b9)
* nss_wrapper: fix nss_wrapper build for solaris.Günther Deschner2009-06-021-0/+2
| | | | | | Guenther (cherry picked from commit 136b2a3eb21eda28e7a18547751ee20f097e7492) (cherry picked from commit 0677a068dce0bd1cc76fc3ea13322e57b1d1c3af)
* nss_wrapper: remove re-structuring leftovers (unused variables).Günther Deschner2009-06-021-6/+0
| | | | | | Guenther (cherry picked from commit 37e4c92b383397a2c77db7e5d8adf2fa4a24d398) (cherry picked from commit db2fa7179db37d5cb6475006b88ff648636ac602)
* s3-selftest: use nss_wrapper.pl as "add user to group" and "delete user from ↵Günther Deschner2009-06-022-10/+14
| | | | | | | | group" script. Guenther (cherry picked from commit 7a5475f098c6a20f867adc081ca455e6c393755b) (cherry picked from commit 1a129e79baac7c7ebbc63c9e077ede4b123cf390)
* nss_wrapper: support member add and delete for groups in nss_wrapper.pl.Günther Deschner2009-06-021-21/+141
| | | | | | Guenther (cherry picked from commit ebf8df35c9583619a012e85964f2ad5187a199fe) (cherry picked from commit 0f93abf8222672e5f7c09fd0b55337de82e9569f)
* nss_wrapper: split out passwd and group paths in nss_wrapper.pl.Günther Deschner2009-06-021-15/+26
| | | | | | Guenther (cherry picked from commit 7bb9e08d7e75be88a9788563f053794554f680a8) (cherry picked from commit 8bda8295ffc6fa9a9776f821b11075b6bac7a80d)
* nss_wrapper: restructure nwrap calls.Günther Deschner2009-06-021-71/+169
| | | | | | Guenther (cherry picked from commit ec9a0917055d731aa95e2fea2045445f9945b74d) (cherry picked from commit bf255ec2a81f2f44a9ef0379beaec0a51bbfb000)
* s3/WHATSNEW: Mention new passdb backend default.Karolin Seeger2009-06-021-0/+20
| | | | | Karolin (cherry picked from commit b1f7b6ebb9ea1ac53a83eca734e271e0a7137d0b)
* Fix bug #6419 - smbclient -L 127.0.0.1" displays "netbios name" instead of ↵Jeremy Allison2009-06-021-3/+26
| | | | | | | | | "workgroup" Unify the handling of the sessionsetup parsing so we don't get different results when parsing a guest reply than an ntlmssp reply. Jeremy. (cherry picked from commit 736c4dddef28d53b55e58a6f62784f068e88dc01)
* s3: update manpage as to the new passdb backend defaultBjörn Jacke2009-06-021-3/+5
| | | | (cherry picked from commit 83613fd2fa6d4c6e7d9eb9bdb60aac31a37bbcaf)
* s3: make passdb backend defaults to tdbsamBjörn Jacke2009-06-021-1/+1
| | | | (cherry picked from commit f15af8bf2def12eedd967b6e0e411f690be2f804)
* Fix bug #6421 - POSIX read-only open fails on read-only shares.Jeremy Allison2009-06-022-8/+12
| | | | | | | | | | | The change to smbd/trans2.c opens up SETFILEINFO calls to POSIX_OPEN only. The change to first smbd/open.c closes 2 holes that would have been exposed by allowing POSIX_OPENS on readonly shares, and their ability to set arbitrary flags permutations. The O_CREAT -> O_CREAT|O_EXCL change removes an illegal combination (O_EXCL without O_CREAT) that previously was being passed down to the open syscall. Jeremy. (cherry picked from commit d49ae9c87d182f32702a0b6a1cc2a2038f31d81d)
* Simplify the dropbox patchJeremy Allison2009-06-021-5/+10
| | | | (cherry picked from commit 0d32230c17dbfa5e790d2023ba655f109938ef28)
* Re-Add the "dropbox" functionality with -wx rights on a directoryVolker Lendecke2009-06-021-3/+3
| | | | (cherry picked from commit 78aecba62195822f3edb6134548657cf7ba9037c)
* s3-netlogon: Fix _netr_LogonSamLogon{Ex} with validation level != 3.Günther Deschner2009-06-021-6/+7
| | | | | | Guenther (cherry picked from commit 90b38906541de554e3964d96ed83a7c71b5ea05c) (cherry picked from commit a8868d7fbf51e4706a7d2ee44a9066a8e1efcb4a)
* s3-netlogon: return proper error code for unsupported validation class.Günther Deschner2009-06-021-1/+1
| | | | | | Guenther (cherry picked from commit 65f86a644a8171a99c63b6cb32e01e22897174f6) (cherry picked from commit 745f8d37fffe9d2ac2938101b08ff39ebf50c94c)
* s3-rpc_server: increase max number of open policy handles per pipe to 2048.Günther Deschner2009-06-021-1/+1
| | | | | | Guenther (cherry picked from commit 9bd8b0a15773d3d5c0649bfb49bb16acfb4bb5f1) (cherry picked from commit aebc22c407c60588eabae324eb9cc06e73538dd4)
* WHATSNEW: Update changes since 3.4.0pre1.Karolin Seeger2009-05-291-0/+116
| | | | | Karolin (cherry picked from commit 7021008d5ed401d60b3b2d5f7fe6c78d63c3495b)
* s3/VERSION: Raise version number up to 3.4.0pre2.Karolin Seeger2009-05-291-1/+1
| | | | | Karolin (cherry picked from commit 51610de47bb709739ba84075395f5409be5ebc5c)
* s3/docs: Correct version number.Karolin Seeger2009-05-291-1/+1
| | | | | Karolin (cherry picked from commit 136b885461b730cf226999b07d2198de8441ebc9)
* s3/docs: Fix typo.Karolin Seeger2009-05-291-1/+1
| | | | | | | | | This fixes bug #4341. Thanks to Michael Cartmell <michael.cartmell [at] thomson.com> for reporting! Karolin (cherry picked from commit 2228cc6a0f942b774bef7fb0b99009897fa4dff4) (cherry picked from commit e1b1f14e0260395a8d452ea0a129bcc9bb3f98cc)
* Fix uninitialized variable use caught by valgrind.Jeremy Allison2009-05-291-1/+1
| | | | | Jeremy. (cherry picked from commit 62d767d57fafd869ec956cbcc84e8c866c6d665b)
* s3/auth map NULL domains to our global sam nameSteven Danneman2009-05-291-9/+3
| | | | | | | | | | | | | | | | This is an addendum to d8c54fdd, which made make_user_info_map() match Windows behavior by mapping untrusted domains given to smbd on the wire with the users credentials to smbd's global sam name. This fix was being circumvented in the case where the client passed a NULL domain. Vista clients do this. In that case smbd was always remapping the name to the machine workgroup. The NULL domain case should also be mapped to the global sam name. Removing the code in this patch, causes us to fall down to the logic added in d8c54fdd and properly map the domain. (cherry picked from commit fbca26923915a70031f561b198cfe2cc0d9c3aa6) (cherry picked from commit 22b9d9d28d9acd68a9bc492530fcd0a565ff0aa3)
* s3:idmap_ldap: filter out of range mappings in default idmap configMichael Adam2009-05-291-16/+55
| | | | | | | | This fixes bug #6417 Michael (cherry picked from commit e381c13b023f2b512b3f6aec133db9f323bc8132) (cherry picked from commit 4ca03e3bb96518665c296ba2cf5aa1d91916897e)
* s3:idmap: fix a comment typoMichael Adam2009-05-291-1/+1
| | | | | | Michael (cherry picked from commit 3fe9859342c28fe9da7011fb18a5fb5de8b29fa6) (cherry picked from commit df4a0fabff06ea31149aac45d6477564cf96179b)
* s3:idmap_tdb2: filter out of range mappings in default idmap configMichael Adam2009-05-291-12/+49
| | | | | | | | This fixes bug #6416 Michael (cherry picked from commit e12670a1053edf57af137026bd3fdb9fc7dfb0b2) (cherry picked from commit b369902cddd55fab74ca6e0743e15e0f8cbfc4cc)
* s3:idmap_tdb: filter out of range mappings in default idmap configMichael Adam2009-05-291-16/+57
| | | | | | | | This fixes bug #6415 Michael (cherry picked from commit 3d3f39838261ddc401053dadcc5bd8e6317a3a8e) (cherry picked from commit 34500d59b6f35de2c3d273d3523708ec22df59ce)
* s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen2009-05-299-25/+35
| | | | | | | | | | | When we run out of file descriptors for some reason, every new connection forks a child that immediately panics causing smbd to coredump. This seems unnecessarily harsh; with this code change we now catch that error and merely log a message about it and exit without the core dump. Signed-off-by: Tim Prouty <tprouty@samba.org> (cherry picked from commit 1c8f9892010ce8cc754089b25313c6bc8e622165)
* s3: zero an uninitialized arrayMarc VanHeyningen2009-05-291-1/+4
| | | | | | | | Invalid pointers were being dereferenced in lookup_sids causing occasional seg faults. Signed-off-by: Tim Prouty <tprouty@samba.org> (cherry picked from commit 5afacc0a65e52e73e3887545c4e5e1ad44264b66)
* s3/docs: Fix typo in man idmap_rid.Karolin Seeger2009-05-271-1/+1
| | | | | | Karolin (cherry picked from commit 73eaff7a395c9a7a0042f2c50f8817499b6cfdcd) (cherry picked from commit b85c2cbcc57291ff88d8d490f548faa675b689be)
* s3/docs Add manpage for "map untrusted to domain" parameterSteven Danneman2009-05-271-0/+33
| | | | | This fixes bug 6352. (cherry picked from commit bf5fb8b58cb1813fdadabe8f96ef8af305d4d582)
* s3:dbwrap_tool: add listkeys operationMichael Adam2009-05-271-2/+45
| | | | | | Michael (cherry picked from commit 714acfac013a46c3677c3eb72ad57db6d97c7d61) (cherry picked from commit 816776d2f81c1ae90e52612af76aaafeaeb04598)
* s3:dbwrap_tool: remove superfluous command mappingMichael Adam2009-05-271-1/+0
| | | | | | Michael (cherry picked from commit 11f07599006cf2ce6760095d07bfe22680c3744e) (cherry picked from commit 53dfa79e07b22325c0f290b05d4b87dde0cbf3cb)
* s3:dbwrap_tool: add "erase" opearationMichael Adam2009-05-271-6/+42
| | | | | | Michael (cherry picked from commit dfe06d21bdc4c715e02c9f80c4bc7144a0d9ee59) (cherry picked from commit 2e051ece16e7b18e9e82ef36f7d7e8e39d00e66d)
* s3:pam_smbpass: don't call openlog() or closelog() from pam_smbpassBjörn Jacke2009-05-275-80/+104
| | | | | | | | | | Patch from Steve Langasek with tiny fixes by me to make it apply to master. Also see Debian bug #434372 and bugzilla #4831. Calling openlog() or closelog() inside a pam module is not good as these functions are not stackable and no program won't re-do openlog() just because a pam module might have called closelog(). (cherry picked from commit 5c34ea94bdf9e3efb6743e52dd3c0c0088cff7d8)
* WHATSNEW: Unify spelling.Karolin Seeger2009-05-261-1/+1
| | | | | Karolin (cherry picked from commit 41644f222542442f2df6f989989aea1c38735d8d)
* WHATSNEW: Start release notes for 3.4.0pre2.Karolin Seeger2009-05-261-3/+9
| | | | | Karolin (cherry picked from commit 635127a87b8473a01e20338206c2e5b546de5865)
* WHATSNEW: Add net command changesKai Blin2009-05-261-0/+34
| | | | (cherry picked from commit ce18ba7e24b5578672d2f2ffaab97ef708421067)
* net: Use samba default command line arguments.Kai Blin2009-05-2611-209/+135
| | | | | | | | | | | | | | | | | | | | Attention: The meaning of the -N flag changed. To get the old meaning for net groupmap set, use the long option --ntname The long option for using kerberos changed from --kerberos to --use-kerberos net rpc commands will now prompt for a password if none is given. As a benefit, net will now accept an authentication file like other samba command line tools. So no need to specify the password on the command line in scripts anymore. This should fix bug #6357 Signed-off-by: Kai Blin <kai@samba.org> (cherry picked from commit fb262f79fab00374023e59476e8d05a1015a7041) (cherry picked from commit c039bc15ba597d955d0ccbf5642388b0a03ba40b)
* source3/utils/log2pcaphex.c(main): fixed file descriptors leak.Slava Semushin2009-05-261-0/+8
| | | | | | One of leaks found by cppcheck: [./source3/utils/log2pcaphex.c:367]: (error) Resource leak: out (cherry picked from commit 8987ca29062db53db117d6c9d9ce2ad01ed17d22)
* source{3,4}/torture/smbiconv.c(main): fixed file descriptor leak.Slava Semushin2009-05-262-0/+2
| | | | | | | | | File descriptor leaks only when we use file instead of stdout. Found by cppcheck: [./source3/torture/smbiconv.c:219]: (error) Resource leak: out [./source4/torture/smbiconv.c:211]: (error) Resource leak: out (cherry picked from commit 61cca8aa5f5e3ad665c3b1acfab20802dd0f3f3a)
* nsswitch/winbind_nss_aix.c(fill_grent): fixed memory leak.Slava Semushin2009-05-261-0/+3
| | | | | | Found by cppcheck: [./nsswitch/winbind_nss_aix.c:241]: (error) Memory leak: result (cherry picked from commit bfe6186c600470916d73c3d3b17b6dfc27c299bd)
* s3-selftest: fix typo.Günther Deschner2009-05-261-2/+2
| | | | | | Guenther (cherry picked from commit 4258750e4f112040b3537c2c479f62b6e59b32e3) (cherry picked from commit b9344264c0d2108fbbb6ed9b19da9a56b6444211)
* s3:winbind:idmap_ldap: warn about duplicate SID->XID mappings (bug #6387)Michael Adam2009-05-261-2/+11
| | | | | | | | | | With the current infrastructure, we should not return error on duplicate mappings but just warn instead (because an error would trigger the attempt to create yet another mapping). Michael (cherry picked from commit 3111d78001f458cfcaf81123a1d1c23d5927a6c2) (cherry picked from commit 5328f600bbc6535d8880b1b0c74bcfbd9b7a162a)
* s3:winbind:idmap_ldap: warn about duplicate XID->SID mappings (bug #6387)Michael Adam2009-05-261-0/+8
| | | | | | | | | | With the current infrastructure, we should not return error on duplicate mappings but just warn instead (because an error would trigger the attempt to create yet another mapping). Michael (cherry picked from commit 35c3f4162d15f9846a645444e623178b78c52994) (cherry picked from commit 751b6b07c5ea25809b1766a01fc859d580304ae9)
* s3-samr: Fix Bug #6372, usermanager only displaying 1024 groups and aliases.Günther Deschner2009-05-261-0/+12
| | | | | | | | This is now also verified with the RPC-SAMR-LARGE-DC test. Guenther (cherry picked from commit fca7dce1a908570e463ddcbd663955fcafd1d843) (cherry picked from commit 69907810fee3253096958bf174a052d3cb3b385c)
* s3-selftest: enable RPC-SAMR-LARGE-DC against Samba3.Günther Deschner2009-05-261-1/+1
| | | | | | | | | This will fail for alias creation as nss_wrapper does not yet wrap around libnss_winbind. Guenther (cherry picked from commit f0139e3b69a866a6154d0b349410fc0b3bfc30af) (cherry picked from commit e9ed9e7f90c39d38dd40871bb915adda2e9951ff)
* s4-smbtorture: add RPC-SAMR-LARGE-DC test.Günther Deschner2009-05-262-1/+332
| | | | | | | | | This rather simple test creates 4500 objects on a domain controller and checks the enum calls for the correct number of results. Guenther (cherry picked from commit eb5e8dc82efae20c95a391a15c1264f2267e5a74) (cherry picked from commit c1dca5a5f0becdd5f7041e91245cf9d9ae0dfd13)
* s4-smbtorture: rename test_EnumDomain{Users,Groups,Aliases} in RPC-SAMR.Günther Deschner2009-05-261-11/+12
| | | | | | Guenther (cherry picked from commit a75698bdf3b62d43e4909e5bfded70f6675b2058) (cherry picked from commit b4817feb9ec5e9ac9e610fdda31dfa64295c6822)