1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

26269 Commits

Author SHA1 Message Date
Günther Deschner
659d21a2cb Fix counter mismatch in lsa_LookupNames server.
Guenther
(cherry picked from commit 80fd085c34befd38d33cf6e59080a2a36016a92d)
(This used to be commit af7aded25d9007a8c2037940ab90fb30d0a3eef2)
2008-03-04 13:58:57 +01:00
Günther Deschner
295734191f Fix lsa_QueryInfoPolicy: make proper talloc copies of the sids.
Guenther
(cherry picked from commit b9441232d66d78e66464be6c9748a023681ce6ca)
(This used to be commit 1081da4d83dbfb6d87c3267c5e00e668b2151294)
2008-03-04 13:58:13 +01:00
Günther Deschner
59e745ea67 Zero more structs initially in LSA rpc server.
Guenther
(cherry picked from commit d7ce643285276790a65faff76666498595a508d7)
(This used to be commit 7867f40567503db32dbb13b4fca19792cf198505)
2008-03-04 13:56:35 +01:00
Günther Deschner
7c95f53b68 Fix counter mismatch in lsa_LookupNames3 server.
Guenther
(This used to be commit e052d6f2c82a644986e5d99f640310d71cd5c396)
2008-03-04 13:22:40 +01:00
Günther Deschner
253dc4d728 Fix counter mismatch in lsa_LookupNames server.
Guenther
(This used to be commit 80fd085c34befd38d33cf6e59080a2a36016a92d)
2008-03-04 13:22:40 +01:00
Karolin Seeger
959cb482d3 Update release date.
Karolin
(cherry picked from commit 491535d0911c64869055b85a210c2ef076086b83)
(This used to be commit 5eacf7c672ce8a2cf17f05c62789d321ed9d89bb)
2008-03-04 13:02:58 +01:00
Günther Deschner
33322a7ced Fix lsa_QueryInfoPolicy: make proper talloc copies of the sids.
Guenther
(This used to be commit b9441232d66d78e66464be6c9748a023681ce6ca)
2008-03-04 12:52:37 +01:00
Günther Deschner
0a27ef8be7 Fix crash bug in pdb_init_ldapsam().
Karolin, this needs to be in 3-2-stable.

Guenther
(cherry picked from commit 0d73bde6de4391e7aec862424762473441fa0905)
(This used to be commit 4c2d6ce18daf07de7233e3e90bd24fa2a5f9e945)
2008-03-04 11:22:04 +01:00
Günther Deschner
5a4182012d Use TALLOC_FREE in libnetjoin debugging dump code.
Guenther
(This used to be commit b753087ff79c1d35a409eddc1f61e115e887c1e1)
2008-03-04 11:07:13 +01:00
Günther Deschner
b2729f4e2d Zero more structs initially in LSA rpc server.
Guenther
(This used to be commit d7ce643285276790a65faff76666498595a508d7)
2008-03-04 11:06:02 +01:00
Günther Deschner
f7b4485fbe Move talloc_init to the right place in "net ads join".
Guenther
(This used to be commit 8cd07c1fa8f435f7ff3dc79c195da9324fb2452f)
2008-03-04 11:04:36 +01:00
Günther Deschner
2c5e04b1f7 Fix crash bug in pdb_init_ldapsam().
Karolin, this needs to be in 3-2-stable.

Guenther
(This used to be commit 0d73bde6de4391e7aec862424762473441fa0905)
2008-03-04 11:03:35 +01:00
Karolin Seeger
f58ad2670e Update release date.
Karolin
(This used to be commit 491535d0911c64869055b85a210c2ef076086b83)
2008-03-04 09:53:37 +01:00
Günther Deschner
143e709c8c Fix init_registry_data for subkeyless top-level keys.
On a fresh install with no existing registry.tdb, make sure we are able to
create our initial top-level entries.

Michael, Volker, please check.

Guenther
(cherry picked from commit 956bc602062825493e1c357e2388fee1e5514b50)
(This used to be commit bf03cba57d3cfe07b8d848aa3b5a165bb198b7aa)
2008-03-04 09:33:40 +01:00
Derrell Lipman
9ad8af0d06 use constant name less likely to cause conflict
(cherry picked from commit fd18b01016d1dc4b08983975353e62084fdc323c)
(This used to be commit 4279cc49ff73d4503df2fd0c6176c3f90f67066c)
2008-03-04 09:26:00 +01:00
Derrell Lipman
ed26f09a91 Missed a few 'deprecated' markers
(cherry picked from commit 76ba37ac46b4a77fe228ca90635fa19140541ccd)
(This used to be commit 7c2a0be9cb2916c07074d8d56d698721b02bcfc3)
2008-03-04 09:03:01 +01:00
Derrell Lipman
2f0a61564a Continued revamping of libsmbclient.
- James suggested using gcc's "deprecated" attribute to mark the context
  structure fields to generate warnings.  This creates a scenario with the
  best of all worlds.  I'm able to move to an organization that more easily
  allows future enhancements, while avoiding any mandatory changes by
  applications.  Thanks, James!

- Updated WHATSNEW.txt so that it accurately reflects the current state of
  affairs.

Derrell
(cherry picked from commit a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd)
(This used to be commit 046653403fadfa2d42decce7048eca6321b321c6)
2008-03-04 09:02:42 +01:00
Derrell Lipman
8cd0cf153e Remove use of deprecated function
(cherry picked from commit 93580bce833453ba512ee436d6dfdbdcd2c53777)
(This used to be commit 0621dfe10f1fd3d8ce04a039d2d44d6c67407746)
2008-03-04 09:02:00 +01:00
Derrell Lipman
2edf9c595e fixed missing white space
(cherry picked from commit 71e86f13b0ace3841c6712084728c79db74ff803)
(This used to be commit 8bf707c13794539029be2229f0c587b713b4fd20)
2008-03-04 09:01:31 +01:00
Derrell Lipman
2492e96a8e Update WHATSNEW for libsmbclient changes
(cherry picked from commit f07407a32e178a47c8f9b3e3703aa5a20f0a4f06)
(This used to be commit 938c6aef24c696be9bd247e43c7c5ec1f792dbd6)
2008-03-04 09:01:09 +01:00
Derrell Lipman
ddf19f91e5 Return NULL, not 0, from a function which returns a pointer.
(cherry picked from commit 23cb9c49e3724cecaa66655ef64c3111bf14c552)
(This used to be commit 9b4bd6473ed3f93c1bbfae3f82d0a100e832df48)
2008-03-04 09:00:26 +01:00
Derrell Lipman
298fb51286 change variable name from f to fn for function pointers
(cherry picked from commit 1fd65359f6cd07539cfe43146ac367a48708a678)
(This used to be commit b7f10bd31dec8047ea996c4738a6db5535c9261a)
2008-03-04 09:00:05 +01:00
Derrell Lipman
99eab28ce1 Comment was in wrong place
(cherry picked from commit dec70fa3c0424c148016cc667a3c159e16d8a944)
(This used to be commit eb4d6dda1091199af7e62fb584525deb382978e2)
2008-03-04 08:59:31 +01:00
Derrell Lipman
4a1f55ba0d Mark smbc_option_{get,set} as deprecated
(cherry picked from commit a8b4b773d4647f28e7b92c5968469721d34eb550)
(This used to be commit 7b05e264d58c65af37af457947548611fc77edce)
2008-03-04 08:59:00 +01:00
Derrell Lipman
9a96722833 Additional revamped libsmbclient documentation
- Ensured that all public functions have documentation in libsmbclient.h
- Reformatted for "proper" indentation
- Re-added temporarily-disabled alternate authentication function capability

Derrell
(cherry picked from commit 64b7150d92849a1e1e2416b9dcc12fae8d6bea99)
(This used to be commit dca8a612e94095e38df50f0fe567c75ceb8124fe)
2008-03-04 08:58:38 +01:00
Derrell Lipman
48894994d0 Modified revamp of the libsmbclient interface.
Given the tacit (if that) approval by some people, and clear disapproval by
others for my proposed clean-up and reorganization of libsmbclient, I've come
up with a slightly different approach.  This commit changes back to the
original libsmbclient.h SMBCCTX structure which will maintain ABI
compatibility.  I retain, here, the setter and getter functions which all new
code should use.  Older programs already compiled should continue to work
fine.  Older programs being recompiled will encounter compile-time errors
(intentionally!) so that the code can be corrected to use the setter/getter
interfaces.

Although this doesn't clean up the interface in the way I had wanted, the code
reorganization and requirement for new programs to use the setters and getters
allows future progress to be made on libsmbclient without further muddying up
the interface, while retaining the ABI compatibility that was the big issue
causing disapproval.  I hope that this compromise is adequate.

Derrell
(cherry picked from commit 56429a3d60b2a48963342f6340b3c01469a892c6)
(This used to be commit 7bc53f57dcb1c3bb80cb20796ebfc743c22a76e3)
2008-03-04 08:58:14 +01:00
Derrell Lipman
c2beacfb3f Initial revamp of the libsmbclient interface.
The libsmbclient interface has suffered from difficulty of improvement and
feature enrichment without causing ABI breakage.  Although there were a number
of issues, the primary ones were:

(a) the user of the library would manually manipulate the context structure
    members, meaning that nothing in the context structure could change other
    than adding stuff at the end;

(b) there were three methods of setting options: setting bits in a flags field
    within the context structure, setting explicit options variables within an
    options structure in the context structure, and by calling the
    smbc_option_set() function;

(c) the authentication callback did not traditionally provide enough
    information to the callee which required adding an option for a callback
    with a different signature, and now there are requests for even more
    information at the callback, requiring yet a third signature and option to
    set it (if we implement that feature).

This commit provides a reorganization of the code which fixes (a) and (b).
The context structure is now entirely opaque, and there are setter and getter
functions for manipulating it.  This makes maintaining ABI consistency much,
much easier.

Additionally, the options setting/getting has been unified into a single
mechanism using smbc_option_set() and smbc_option_get().

Yet to be completed is a refactoring of the authentication callback (c).

The test programs in examples/libsmbclient have been modified (if necessary;
some applications require no changes at all) for the new API and a few have
been minimally tested.

Derrell
(cherry picked from commit d4b4bae8ded824d06ad5ab0e219f71187ee5c771)
(This used to be commit 59292c0da8880afd7bac82f6a5bba009f3827ea0)
2008-03-04 08:57:53 +01:00
Volker Lendecke
5491030872 Zero out the out policy handler in lsa_Close
... after a REALLY long session staring at sniffs we can now join XP to
v3-2-test again...

Apparently not doing this makes XP keep an internal handle to LSA open which
confuses the hell out of it.

Karolin, this needs to be in v3-2-stable :-)

Volker
(cherry picked from commit 2c42fc21d8bede226e411623aecd69038477373b)
(This used to be commit a94313e06a030e1a1afff18c797e700eb6b25248)
2008-03-04 08:55:25 +01:00
Derrell Lipman
8a22800028 use constant name less likely to cause conflict
(This used to be commit fd18b01016d1dc4b08983975353e62084fdc323c)
2008-03-03 22:56:32 -05:00
Derrell Lipman
b6595bd38b Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 8927b50d6051fcefd87f19dc90c5826378d03e4e)
2008-03-03 18:27:41 -05:00
Derrell Lipman
ee45d0d663 Missed a few 'deprecated' markers
(This used to be commit 76ba37ac46b4a77fe228ca90635fa19140541ccd)
2008-03-03 18:25:49 -05:00
Derrell Lipman
1363ee9d65 Continued revamping of libsmbclient.
- James suggested using gcc's "deprecated" attribute to mark the context
  structure fields to generate warnings.  This creates a scenario with the
  best of all worlds.  I'm able to move to an organization that more easily
  allows future enhancements, while avoiding any mandatory changes by
  applications.  Thanks, James!

- Updated WHATSNEW.txt so that it accurately reflects the current state of
  affairs.

Derrell
(This used to be commit a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd)
2008-03-03 18:13:33 -05:00
Volker Lendecke
4aa0bfc985 Zero out the out policy handler in lsa_Close
... after a REALLY long session staring at sniffs we can now join XP to
v3-2-test again...

Apparently not doing this makes XP keep an internal handle to LSA open which
confuses the hell out of it.

Karolin, this needs to be in v3-2-stable :-)

Volker
(This used to be commit 2c42fc21d8bede226e411623aecd69038477373b)
2008-03-03 18:13:38 +01:00
Volker Lendecke
f247b78eb9 Restore 3.0 behaviour with empty /etc/hosts
Jeremy, in 3.0 we allowed get_mydnsdomname and get_mydnsfullname to fail
without filling in anything useful. Worked fine. Without this patch and a empty
/etc/hosts and no DNS configured, session setup would return
NT_STATUS_BAD_NETWORK_NAME. This is confusing at best, BAD_NETWORK_NAME afaik
is only ever returned from tcon normally.

This restores the 3.0 behaviour.

Comments?

Volker
(This used to be commit 4170259e5f83c281966a80916e4ece6937e08988)
2008-03-03 11:40:12 +01:00
Volker Lendecke
2e7eb4d023 Revert "Add basic infrastructure for general async requests"
This reverts commit ae254cb61f4b9331755848c47ebc34e90dd80390.
(cherry picked from commit 030bef7f22f7a73466204b7860f397dbca9f2ab0)
(This used to be commit 575b829b390f7f07138305adc2988918eda95ce1)
2008-03-03 11:27:51 +01:00
Volker Lendecke
a1facdd7cc Revert "Add infrastructure to support async SMB requests"
This reverts commit f5356825698a02df2d400b51dd95d1f857c83e81.
(cherry picked from commit 5f53a62be8a21b8d92ac44b18d202882500356e8)
(This used to be commit 8beead9c936038365f28467e527b2c066e3a5440)
2008-03-03 11:27:16 +01:00
Volker Lendecke
54541623e4 Revert "Add async cli_pull support"
This reverts commit 844a163458c7585e4306a21ffdae5d08e03d6e4d.
(cherry picked from commit 5ab1cfda500de07ff3c712442ab2fc74eecc8886)
(This used to be commit 7821066d4ff4a8503a596ab342a2a84ed9a9f8b9)
2008-03-03 11:26:43 +01:00
Volker Lendecke
80a3e1549c Revert "Convert cli_read to use cli_pull"
This reverts commit 719527f55e88f0c5fdceda5c807475aba299c79f.
(cherry picked from commit ac301fada257e2d3b50148109a3d44fa1421b0b4)
(This used to be commit 1bfc4404e7f7314111f979bd09321e39be76bf15)
2008-03-03 11:26:00 +01:00
Günther Deschner
bc5d7d9387 Make sure we are still able to join Windows 2008.
Guenther
(cherry picked from commit aa9c0f587718f4d647e87b9662acbedba042b9cb)
(This used to be commit 851b53895807835fc9e6a4a1b3a2b4739ca7c63f)
2008-03-03 10:58:57 +01:00
Günther Deschner
2418916460 Fix gp_find_file() which broke during the pstring removal.
Guenther
(This used to be commit f18ba6c877fa934d19ecc6a65be74b8bad7ee7e4)
2008-03-03 09:44:36 +01:00
Karolin Seeger
e447bf2edb Update WHATSNEW.
Parameter 'hidden' has been renamed to 'administrative share'.

Karolin
(This used to be commit d0ab519652c3036725b0cea1b4930fc759b4d9fe)
2008-03-03 09:26:26 +01:00
Derrell Lipman
8a05c0a884 Remove use of deprecated function
(This used to be commit 93580bce833453ba512ee436d6dfdbdcd2c53777)
2008-03-02 16:21:48 -05:00
Derrell Lipman
bf950ea758 fixed missing white space
(This used to be commit 71e86f13b0ace3841c6712084728c79db74ff803)
2008-03-02 16:13:25 -05:00
Derrell Lipman
3c0029e9bf Update WHATSNEW for libsmbclient changes
(This used to be commit f07407a32e178a47c8f9b3e3703aa5a20f0a4f06)
2008-03-01 23:08:19 -05:00
Derrell Lipman
fc65c6698e Return NULL, not 0, from a function which returns a pointer.
(This used to be commit 23cb9c49e3724cecaa66655ef64c3111bf14c552)
2008-03-01 21:19:52 -05:00
Derrell Lipman
4a3410b766 change variable name from f to fn for function pointers
(This used to be commit 1fd65359f6cd07539cfe43146ac367a48708a678)
2008-03-01 21:19:15 -05:00
Derrell Lipman
b3c16a241d Comment was in wrong place
(This used to be commit dec70fa3c0424c148016cc667a3c159e16d8a944)
2008-03-01 20:56:54 -05:00
Derrell Lipman
0bd3df33ed Mark smbc_option_{get,set} as deprecated
(This used to be commit a8b4b773d4647f28e7b92c5968469721d34eb550)
2008-03-01 20:55:21 -05:00
Derrell Lipman
223940d9a8 Additional revamped libsmbclient documentation
- Ensured that all public functions have documentation in libsmbclient.h
- Reformatted for "proper" indentation
- Re-added temporarily-disabled alternate authentication function capability

Derrell
(This used to be commit 64b7150d92849a1e1e2416b9dcc12fae8d6bea99)
2008-03-01 20:47:22 -05:00
Derrell Lipman
4ba42cbe0f Modified revamp of the libsmbclient interface.
Given the tacit (if that) approval by some people, and clear disapproval by
others for my proposed clean-up and reorganization of libsmbclient, I've come
up with a slightly different approach.  This commit changes back to the
original libsmbclient.h SMBCCTX structure which will maintain ABI
compatibility.  I retain, here, the setter and getter functions which all new
code should use.  Older programs already compiled should continue to work
fine.  Older programs being recompiled will encounter compile-time errors
(intentionally!) so that the code can be corrected to use the setter/getter
interfaces.

Although this doesn't clean up the interface in the way I had wanted, the code
reorganization and requirement for new programs to use the setters and getters
allows future progress to be made on libsmbclient without further muddying up
the interface, while retaining the ABI compatibility that was the big issue
causing disapproval.  I hope that this compromise is adequate.

Derrell
(This used to be commit 56429a3d60b2a48963342f6340b3c01469a892c6)
2008-03-01 20:47:22 -05:00