1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-14 01:57:53 +03:00

21634 Commits

Author SHA1 Message Date
Volker Lendecke
b2eaa733c5 r21269: Reformatting 2007-10-10 12:17:53 -05:00
Volker Lendecke
b419a34075 r21265: Fix some valgrind errors -- not in 3_0 2007-10-10 12:17:52 -05:00
Volker Lendecke
1b3239f2ab r21264: LDAP_OPT_ERROR_NUMBER seems more portable than LDAP_OPT_RESULT_CODE 2007-10-10 12:17:52 -05:00
Volker Lendecke
730cc3dc1e r21263: getpeername() returning -1 is not a reliable indication if a TCP connection is
dead. Might be my code, this rings a very distant bell...

Attempt to fix bug # 4372.

Volker
2007-10-10 12:17:52 -05:00
Gerald Carter
e2681eb4be r21262: Final part of BUG 4093: fix %a with Windows XP 64bit 2007-10-10 12:17:52 -05:00
Jeremy Allison
7f1aee96a0 r21259: Fix coverity bug id . No way to process
logon parameter as the code was written.
Jeremy.
2007-10-10 12:17:52 -05:00
Gerald Carter
fa5490b71b r21258: Fix for connecting printers from Vista by storing
the printer GUID as a REG_SZ as Vista seems to
whine about unknown REG_BINARY values.

Thanks to Martin Zielinski <mz@seh.de> for his excellent
analysis on this.
2007-10-10 12:17:52 -05:00
Jeremy Allison
2dab892876 r21257: Better fix for bug :
Windows Vista RC1 and RC2 can't delete directory on Samba share
based on work by Joe Meadows <jmeadows@webopolis.com>.
Jeremy.
2007-10-10 12:17:51 -05:00
Volker Lendecke
4c3a913562 r21251: Okay, after Jeremy has kindly tested this, check it in :-)
Attached find a workaround that works for me. This is not the "correct" fix,
to me it seems our DFS referral marshalling is broken. Vista requests level 4,
we reply with level 2, and Vista seems not to like that. If we reply with
level 3 it seems more happy.

Needs more work!

Volker
2007-10-10 12:17:51 -05:00
Gerald Carter
d781eeb0e4 r21250: Partial fix for BUG 4093: Make %a expand to "Vista"
based on the flags2 values in the negprot request.

This also includes some code for testing the dialect
strings for "SMB 2.001" but this is unreliable as Vista
only sends that in the 1st negprot and caches the fact
that we don't support it.  Restartnig the WOrkstation
service on the client clears the cache.
2007-10-10 12:17:51 -05:00
Jeremy Allison
7fd3a146c1 r21247: In the refactoring I dropped a RESOLVE_DFSPATH call
from setpathinfo. Return it and make sure all paths
go through a dfs resolve.
Jeremy.
2007-10-10 12:17:51 -05:00
Jeremy Allison
a19fe0f0c4 r21246: Remove incorrect control on unix set info.
We can take path or handle based calls.
Jeremy.
2007-10-10 12:17:51 -05:00
Günther Deschner
7e1a84b722 r21240: Fix longstanding Bug .
For the winbind cached ADS LDAP connection handling
(ads_cached_connection()) we were (incorrectly) assuming that the
service ticket lifetime equaled the tgt lifetime. For setups where the
service ticket just lives 10 minutes, we were leaving hundreds of LDAP
connections in CLOSE_WAIT state, until we fail to service entirely with
"Too many open files".

Also sequence_number() in winbindd_ads.c needs to delete the cached LDAP
connection after the ads_do_search_retry() has failed to submit the
search request (although the bind succeeded (returning an expired
service ticket that we cannot delete from the memory cred cache - this
will get fixed later)).

Guenther
2007-10-10 12:17:50 -05:00
Simo Sorce
e7e44554bf r21239: if the workgroup name is longer than 16 chars we get garbage in the string
server_len is usually 256 (fstring).

Correctly terminate saving the lenght
2007-10-10 12:17:50 -05:00
Günther Deschner
4df582fa10 r21238: Fix tab indent in self-written krb5.confs.
Guenther
2007-10-10 12:17:50 -05:00
Günther Deschner
8700829c1f r21237: Forgot configure checks in 3_0 (3_0_25 is fine) for heimdal kinit fix.
Guenther
2007-10-10 12:17:50 -05:00
Herb Lewis
509ae5ffa1 r21231: get rid of unused defines that cause a redefined warning 2007-10-10 12:17:49 -05:00
Jeremy Allison
6723f9d85c r21229: Don't indirect through a potentially null pointer :-).
Jeremy.
2007-10-10 12:17:49 -05:00
Jeremy Allison
70b5db7d8c r21228: Fix for fd leak on error path. Thanks to
dleonard@vintela.com for this fix !
Jeremy.
2007-10-10 12:17:49 -05:00
Jeremy Allison
7645044fcf r21227: Quick fix for Stevef - ensure the returned data on open
is 8 byte aligned.
Jeremy.
2007-10-10 12:17:49 -05:00
Jeremy Allison
5fe25588f5 r21226: Fix bug (rename of "foo" -> "Foo" fails).
This is actually an interesting case as it exposed bad code in our DFS redirect
module (that was where the bug was introduced).
Caused by our turning on dfsroot be default.
Jeremy.
2007-10-10 12:17:49 -05:00
Jeremy Allison
6df32b4a6a r21225: Couple of fixes from Martin Zielinski mz@seh.de,
one typo, one to make sure that time initialization
is done before modules that depend on it (printer
initialization).
Jeremy.
2007-10-10 12:17:48 -05:00
Steve French
738d29dbcc r21224: Initial checkin of cifs_host_name resolver helper script
(needed by /sbin keyctl utils to finish the upcall)
2007-10-10 12:17:48 -05:00
Jeremy Allison
470a4dc308 r21223: Try and fix bug - Vista backup fails.
Based on work from  Joe Meadows <jameadows@webopolis.com>.
One for the Vista patchset.
Jeremy.
2007-10-10 12:17:48 -05:00
Volker Lendecke
92fdb1193d r21219: Speed up the initial startup time of smbd on systems with loaded disk
subsystems. See the comment in the diff.

Volker
2007-10-10 12:17:48 -05:00
Volker Lendecke
5b25ce3002 r21218: Fix typo 2007-10-10 12:17:48 -05:00
Volker Lendecke
a5d0d1c1e6 r21217: Just found a system that does not define in_addr_t but only struct
in_addr. Okay, it's a SuSE 7.0, but if the fix is so simple I think we should
not drop that :-)

Volker
2007-10-10 12:17:48 -05:00
Jeremy Allison
5fa720f04f r21210: Fix POSIX open to return an info level.
Jeremy.
2007-10-10 12:17:47 -05:00
Jeremy Allison
36afae2d48 r21207: Make the code match the spec :-).
Jeremy.
2007-10-10 12:17:47 -05:00
Steve French
739a608ead r21204: Add define for new QFS Info for "who am i" 2007-10-10 12:17:47 -05:00
Jelmer Vernooij
1dc2ba09c7 r21203: Regenerate C files after pidl updates. 2007-10-10 12:17:47 -05:00
Volker Lendecke
4ea654857a r21202: On some build hosts, the first tests fail with CONNECTION_REFUSED. On my
solaris 9 box I could solve that with an increased wait time.

Volker
2007-10-10 12:17:47 -05:00
Jeremy Allison
83dbbdff34 r21191: Add in the POSIX open/mkdir/unlink calls.
Move more error code returns to NTSTATUS.
Client test code to follow... See if this
passes the build-farm before I add it into
3.0.25.
Jeremy.
2007-10-10 12:17:47 -05:00
Gerald Carter
b10f4cdfc0 r21188: bumping passdb version number to make sure this is different than the 3.0.25 branch 2007-10-10 12:17:46 -05:00
Volker Lendecke
22c9511314 r21184: Dummy checkin to let the build farm pick up r21183 of Samba4 2007-10-10 12:17:46 -05:00
Gerald Carter
615a104356 r21182: * Refactor the code to obtain the LDAP connection credentials
from both idmap_ldap_{alloc,db}_init()
* Fix the backwards compat support in idmap_ldap.c
* Fix a spelling error in the idmap_fetch_secret() function name
2007-10-10 12:17:46 -05:00
Volker Lendecke
3dd1bf667f r21181: Add some debug, fix the NT_STATUS_IO_TIMEOUT problems in the RAW-NOTIFY test
in the build farm.

Volker
2007-10-10 12:17:46 -05:00
Gerald Carter
01af19cc9d r21180: fix backwards compatible idmap backends parameter parsing 2007-10-10 12:17:46 -05:00
Andrew Tridgell
04f6f01dfe r21176: merged va_end() changes from Samba4 2007-10-10 12:17:45 -05:00
Jeremy Allison
1e25501e8e r21166: Ensure we return the correct "EROFS" error on a non-writable
filesystem.
Jeremy.
2007-10-10 12:17:45 -05:00
Volker Lendecke
de216a574c r21165: Lets try the build farm without inotify, we're seeing some
NT_STATUS_IO_TIMEOUT with it.

Samba4 disables inotify as well. Does anybody know why Samba4 does it? Maybe
the same justification holds for 3 as well.

Volker
2007-10-10 12:17:45 -05:00
Jeremy Allison
b16707a861 r21164: Fix from Martin Zielinski <mz@seh.de> for EnumprinterdataEX
on Vista.
Jeremy.
2007-10-10 12:17:45 -05:00
Günther Deschner
f4a704745c r21161: Another fix for pam_winbind: Move the entire pwd expiry handling into
the PAM_SUCCESS block.

Guenther
2007-10-10 12:17:44 -05:00
Günther Deschner
02713f314b r21160: Some more pam_winbind fixes:
* Consolidate all pam_winbind password expiry warnings in the one
_pam_send_password_expiry_message() call.
* Also convert some more NTSTATUS codes to error messages.
* Add paranoia check to only do all the post-processing after PAM_SUCCESS.

Guenther
2007-10-10 12:17:44 -05:00
Günther Deschner
034d42ba72 r21159: Cleanup pam_sm_chauthtok() in pam_winbind:
Set info3 strings, krb5ccname and returned username after we changed a
password and sucessfully re-authenticated afterwards. In that case we
ended up without this information.

Guenther
2007-10-10 12:17:44 -05:00
Günther Deschner
1feb961577 r21158: Add _pam_setup_krb5_env() and _pam_warn_logon_type() functions for
pam_winbind.

Guenther
2007-10-10 12:17:44 -05:00
Stefan Metzmacher
04feb8e39c r21157: this is 3.0.26 trunk
metze
2007-10-10 12:17:44 -05:00
Günther Deschner
86b34cd5d6 r21155: Forgot one _PAM_LOG_STATE_DATA_STRING call (only in 3_0).
Guenther
2007-10-10 12:17:44 -05:00
Günther Deschner
97a0b1b794 r21154: Add PAM_WINBIND_LOGONSERVER, also merge the various pam_set_data calls.
Guenther
2007-10-10 12:17:43 -05:00
Günther Deschner
ebfae9a671 r21152: Correctly omit pam conversations when PAM_SILENT has been set by the
calling application.

Guenther
2007-10-10 12:17:43 -05:00