1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

9743 Commits

Author SHA1 Message Date
Gerald Carter
4242eda183 merging some rpcclient and net functionality from HEAD
(This used to be commit 7a4c87484237308cb3ad0d671687da7e0f6e733b)
2003-01-15 17:22:48 +00:00
Herb Lewis
6999ff1d48 initialize acct_ctrl variable before it is used
remove ldap_msgfree(result); as result is unitialized at this point
(This used to be commit 1102a6f8cdf295d564df5447a223b354be72895d)
2003-01-15 16:41:29 +00:00
Gerald Carter
e4819ee88b more unused files
(This used to be commit d223ea87ae202574714da5c4eadbe281f8699a80)
2003-01-15 16:32:06 +00:00
Gerald Carter
c9fce34d00 remving more unused files
(This used to be commit e3f9b68deecb61274ead2086a0ed977d5318b09c)
2003-01-15 16:29:38 +00:00
Gerald Carter
9eeab10e54 [merge]
* removed unused variable from rpcclient code
* added container option to net command (patch from SuSE)
* Makefile patch for examples/VFS from SuSE
(This used to be commit 25a9681ddda47a41fac8fdc97ca50b7f4c579eaf)
2003-01-15 16:10:57 +00:00
Gerald Carter
4fc9f53ddb removing unused files from release branch
(This used to be commit 4ff6f99040c400d27fa470199474800b82531d64)
2003-01-15 14:52:23 +00:00
cvs2svn Import User
04412fea45 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 619877ce031f3193065b51b8684ffbbe893b132f) 2003-01-15 12:52:39 +00:00
Andrew Bartlett
58fe4d9c20 Refactor the NTLMSSP code again - this time we use function pointers to
eliminate the dependency on the auth subsystem.  The next step is to add
the required code to 'ntlm_auth', for export to Squid etc.

Andrew Bartlett
(This used to be commit 9e48ab86da40e4c1cafa70c04fb9ebdcce23dfab)
2003-01-15 12:52:38 +00:00
Andrew Bartlett
3095cbd635 Doing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdup
instead.

Andrew Bartlett
(This used to be commit c781e34d274f4185ec932cc59029d3f9a65e47c4)
2003-01-15 12:48:06 +00:00
Andrew Tridgell
eb6312af9f added cli_lsa_enum_account_rights() call. Note that this is in
principal similar to the existing cli_lsa_enum_privsaccount() call,
except that cli_lsa_enum_account_rights() doesn't require a call to
open_account first. There is also the minor matter that
cli_lsa_enum_account_rights() works whereas
cli_lsa_enum_privsaccount() doesn't!

this call can be used to find what privileges an account or group
has. This is a first step towards proper privileges support in Samba.
(This used to be commit 65bac11d716f873dcdbda528313c33634c26a072)
2003-01-15 07:40:40 +00:00
Andrew Bartlett
0a8b4417bc Fix warnings by getting the function into a shape the autoprototyper will
read, and add a static.

Andrew Bartlett
(This used to be commit 919889de78fc3c7bc5dfebcc180385f2f3d7a564)
2003-01-15 05:56:12 +00:00
Andrew Bartlett
10abfb3f87 Crash fixes:
- fix a crash when a second NTLMSSP session tried to free the first
 - fix a crash due to some NULL pointers in the Add Printer Wizard (or read
   printer code too it appears).  As far as I can tell it's just that the
   GUID just might not exist.

Andrew Bartlett
(This used to be commit 51b1413056b0d001076ff47a755eb35baa2d9e6d)
2003-01-15 05:55:22 +00:00
Martin Pool
ec894b5695 One more from waitpid() audit: Correctly interpret waitstatus when a
child fails.  Possibly this was causing smbmount to exit(0) when it
really should have indicated a failure.
(This used to be commit 1e33083fe66dfc1e168ffeb2f9d87953534a2d5d)
2003-01-15 05:27:33 +00:00
Martin Pool
3710ea2223 Run autoheader
(This used to be commit 82e4bb598c9fc26eaa090687d0daa6505fa0d550)
2003-01-15 05:23:40 +00:00
Martin Pool
ac4869ad2a Fix bug where the existence of config.cache would cause functions like
yp_get_default_domain to be misdetected.

According to the autoconf manual we need to check for libraries before
looking for functions in them.
(This used to be commit 468c487df42c6fc25d1862f36995b3d9a78902ff)
2003-01-15 05:00:04 +00:00
Herb Lewis
70025a9b52 IRIX uses libns_winbind.so instead of libnss_winbind.so
(This used to be commit 04adfa001b616f0e4b765e29cb8be9e8531eeb7c)
2003-01-15 01:07:09 +00:00
Herb Lewis
a84db36fae IRIX uses libns_winbind.so instead of libnss_winbind.so
(This used to be commit 50adb8cc1074e9bedac365a92db96c5f01f30223)
2003-01-15 01:05:35 +00:00
Gerald Carter
74d4198a9c [merge] removing unused variable and unused file
(This used to be commit 099e844571975eecde7aea342c64d3f768110e03)
2003-01-14 23:55:14 +00:00
Gerald Carter
55b8c949aa removing unused variable and unused file
(This used to be commit c8266011b7afc2d6bcb8638c2a5ed3f9116cd88a)
2003-01-14 23:52:42 +00:00
Andrew Bartlett
bc11f19051 Fix some debug lines, and add a bit more info to help track down ldap
connectivity problems.

Andrew Bartlett
(This used to be commit 68de9a59203ed9778f11b78f233dc437b9dab55d)
2003-01-14 23:45:14 +00:00
Gerald Carter
05edd278c2 make -i flag work lik eit did in 2.2
(This used to be commit 54b054c1edd44096c7158993a886f915d7a07493)
2003-01-14 15:52:45 +00:00
Gerald Carter
90a2412642 make -i flag work lik eit did in 2.2
(This used to be commit 5d821c0e23f96f4da6a29a6bebf800532fcf1aa6)
2003-01-14 15:52:14 +00:00
Andrew Bartlett
619f9400c0 Merge from HEAD - patch by metze to fill in 'workgroup' etc in testparm output,
and probably SWAT too..

Andrew Bartlett
(This used to be commit 1df808ac8931979000d681bd086399ef306873b6)
2003-01-14 10:47:56 +00:00
Andrew Bartlett
f9c61aef05 Merge from HEAD:
Keep all the const warnings in one place, by adding a utility function to
make the TDB_DATA.
(This used to be commit 7d52f011e7191f54004341a646b049d373504c02)
2003-01-14 10:39:32 +00:00
Andrew Bartlett
27b7e51a3c Merge from HEAD:
- fstring/pstring mixups
 - the detection code that found them (disabled)
 - a bit of whitespace
 - a static

Andrew Bartlett
(This used to be commit 9b70fa868e7d9481f584c83fc4046174e1dedfd9)
2003-01-14 08:53:59 +00:00
Andrew Bartlett
d645041d63 Merge from HEAD:
- remove useless #else
 - signed/unsigned fixes
 - use an fstring for LM hash buffer.

Andrew Bartlett
(This used to be commit c0fb53c31fd7341745d14640e761affc5dae5230)
2003-01-14 08:26:54 +00:00
Andrew Bartlett
61b65aad13 Merge from HEAD - eliminated unused arguments.
Andrew Bartlett
(This used to be commit 6dd474d8451d39e580834089d7c3614059558354)
2003-01-14 07:49:15 +00:00
Andrew Bartlett
212077afa2 Merge indirection, signed/unsigned and uninitialiased-value fixes from HEAD.
Andrew Bartlett
(This used to be commit 2a1adb8f81d8966e8919fffb9b4c69f3e6acd44f)
2003-01-14 07:26:12 +00:00
Andrew Bartlett
5c076b62d7 Commit my (disabled) fstring/pstring mixup detection code.
We need to fix some 'overmalloc' cases before it can be enabled by default.

Andrew Bartlett
(This used to be commit 2c2c52a18be1bd0a5ae1f4a48b1d9e18f4887dda)
2003-01-14 06:53:35 +00:00
Andrew Bartlett
1fdaca3342 The last of the fstring/pstring mixups, and an extra 'static'.
(This used to be commit b328b67fd8fd605636ed58ffd33cf5be3d480672)
2003-01-14 06:46:14 +00:00
Andrew Bartlett
183ccefce7 A couple more pstcpy/fstrcpy mixups - doing an fstrcpy into a pstring is
harmless, but breaks my automated check.
(This used to be commit e5d2b1f6c3c0883054f4e0eab2cac958706a790d)
2003-01-14 06:36:40 +00:00
Tim Potter
3c23522863 Added comment about a SMB_ASSERT()
(This used to be commit 056bdfbce73bbd7ddaa198d18e596b94b2224d3d)
2003-01-14 05:25:08 +00:00
Tim Potter
d1a0cc342f Remove wrapper function _get_trust_account_password() as it doesn't
seem to do anything useful anymore other than call
secrets_fetch_trust_account_password().
(This used to be commit 7b0c03cbf1376f82b0bb5f4cf86e2db3b0bc1dec)
2003-01-14 05:08:42 +00:00
Tim Potter
4c617a3746 Added a comment in case anyone is thinking of doing a SMB_ASSERT in winbindd.
(This used to be commit c64e2308bae31d48171685b3b67b8cace1b003b5)
2003-01-14 04:04:13 +00:00
Andrew Tridgell
42d9c73424 merge alt_name patch from head
(This used to be commit 20ebdee36d5351731698bdef6602fc73a45b1651)
2003-01-14 03:02:18 +00:00
Andrew Tridgell
6d030555a1 query_alt_name takes a forced unicode string in win2000. It is not
null terminated.

Thanks to Metze for finding this.
(This used to be commit e4ce26332b8f876e25ff9baf06d4767a473e2676)
2003-01-14 02:51:37 +00:00
Andrew Tridgell
cfe3a1731c clearer debug message when the user is already in the ldap db
(This used to be commit 31894ba0e5847eb934688598cd8d65bead23c58b)
2003-01-14 00:39:18 +00:00
Andrew Tridgell
a865f61e81 add help text for 'net ads lookup'
(This used to be commit 2a642a1169a3c09988daa9623dcb4f21b0a2ad1f)
2003-01-14 00:35:38 +00:00
Jeremy Allison
f504cc4e10 Don't touch data after a free.
Jeremy.
(This used to be commit 3aea32c8e6d204e41776b4bce79234d2159867b3)
2003-01-13 23:15:14 +00:00
Jeremy Allison
2ad16e942d Missing indirect in final free.
Jeremy.
(This used to be commit faf443e5198e270f1a60d7a0939074efca750a94)
2003-01-13 23:07:28 +00:00
Jeremy Allison
2467a2f0ce Merge of indirection fixes from HEAD.
Jeremy
(This used to be commit 67a0b30f50aa323185cbcf3a9d39804239222480)
2003-01-13 23:07:26 +00:00
Andrew Bartlett
1276959d7c Always initialise this variable - and don't set the 'must change now' if it was
last changed at '0'.

We need to actually change this password sometime...

Andrew Bartlett
(This used to be commit 740bf439d2d1512127c873cf0e57697161d6566b)
2003-01-13 21:49:49 +00:00
Andrew Bartlett
5368372382 Fix typo, and the build.
(This used to be commit d7452e73b511ceaebfaed66c18e7c61cbe0289d2)
2003-01-13 21:48:52 +00:00
Richard Sharpe
2a6bc4302e More janitorial duties. Pulling these in from samba-head.
(This used to be commit f2529a35a7b60c16e229cc3bf22afc726035f15d)
2003-01-13 20:37:46 +00:00
Richard Sharpe
5bbac9dd80 Make sure that those cleanups actually went in.
(This used to be commit 9a38e378115a1c36d0cd7c41f4c5767c23b4eb3f)
2003-01-13 20:30:28 +00:00
Richard Sharpe
16925589eb Now that I am running config.developer, I decided to get rif of some warnings:
1. reboot in parse_reg and cli_reg was shadowing a definition on FreeBSD
   4.3 from system includes.

2. Added a bit of const to places.

3. Made sure internal functions were declared where needed.
(This used to be commit fd847aa93690eb72f0437a8d22c03b222eb2a016)
2003-01-13 20:04:40 +00:00
Andrew Bartlett
8a78a0a27a Patch from metze to add what he feels is the correct semantics for a Domain
Controller.  As we have had a number of attempts at this over the last little
while, I need to get my test rig going, and give this whole area a poke...

Meanwhile, if you want to use this, just adjust your 'auth methods' line to use
samstrict_dc...

Andrew Bartlett
(This used to be commit 18e598ec24493026008fcfe486057555b8832108)
2003-01-13 13:11:36 +00:00
Andrew Bartlett
5bd2d3f2ee Patch from metze to to make testparm show values for 'workgroup', 'netbios
name' and 'netbios scope'.  Probably has a similar effect on SWAT.

Also adds '-V' to testparm.

Andrew Bartlett
(This used to be commit 71f4d8efd36351ddb2180103c160a6d737da62b1)
2003-01-13 13:03:25 +00:00
Andrew Bartlett
80120a79bc Patch from ab, to make findsmb omit -r most of the time.
(original mail follows)
--
From:	Alexander Bokovoy <a.bokovoy@sam-solutions.net>
Greetings!

I propose to make an optional argument '-r' for findsmb utility to pass
'-r' option to nmblookup optionally and default to omit it. The reason is
to have findsmb working more user-friendly in contemporary office
environments where Windows 95/98 boxes are rare and also to allow usage of
the utility under non-priviledged accounts when Windows95/98 boxes are in
minority or even absent in network neighbourhood.

An attached patch provides this change for HEAD together with
documentation changes.

--
/ Alexander Bokovoy
(This used to be commit d0bebea521e12fb9cef66feecd969216607ef63d)
2003-01-13 12:54:59 +00:00
Andrew Bartlett
e3293c7181 Updates to our NTLMSSP code:
This tries to extract our server-side code out of sessetup.c, and into a more
general lib.  I hope this is only a temporay resting place - I indend to
refactor it again into an auth-subsystem independent lib, using callbacks.

Move some of our our NTLMSSP #defines into a new file, and add two that I found
in the COMsource docs - we seem to have a double-up, but I've verified from
traces that the NTLMSSP_TARGET_TYPE_{DOMAIN,SERVER} is real.

This code also copes with ASCII clients - not that we will ever see any here,
but I hope to use this for HTTP, were we can get them.  Win2k authenticates
fine under forced ASCII, btw.

Tested with Win2k, NTLMv2 and Samba's smbclient.

Andrew Bartlett
(This used to be commit b6641badcbb2fb3bfec9d00a6466318203ea33e1)
2003-01-13 12:48:37 +00:00