1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

10115 Commits

Author SHA1 Message Date
Alexander Bokovoy
79613f6146 Merger krb5-config and libtinfo to SAMBA_3_0
(This used to be commit 864809707b)
2003-02-15 19:13:53 +00:00
Alexander Bokovoy
9e99ad57ea When checking for tgetent, include libtinfo from recent Ncurses as well
(This used to be commit c88a5b1aba)
2003-02-15 15:50:24 +00:00
Alexander Bokovoy
7f6fdf49cb Add support for krb5-config from recent MIT and Heimdal. And fallback to traditional guessing only if krb5-config was not found.
(This used to be commit ca27334ba0)
2003-02-15 15:47:32 +00:00
Andrew Bartlett
4aabc4cdfd Move our NTLMSSP client code into ntlmssp.c. The intention is to provide a
relitivly useful external lib from this code, and to remove the dupicate
NTLMSSP code elsewhere in samba (RPC pipes, LDAP client).

The code I've replaced this with in cliconnect.c is relitivly ugly, and
I hope to replace it with a more general SPENGO layer at some later date.

Andrew Bartlett
(This used to be commit b2b66909ac)
2003-02-15 12:20:22 +00:00
Jelmer Vernooij
660d9ad986 Use more portable @SHLIBEXT@ instead of .so
(This used to be commit bddc54818e)
2003-02-15 02:05:45 +00:00
Jelmer Vernooij
ab1035aa1b Use more portable @SHLIBEXT@ instead of .so
(This used to be commit ba25db83f2)
2003-02-15 02:04:41 +00:00
Jelmer Vernooij
9770ba3f4c Remove obsolete file lib/netatalk.c - We now have a vfs module
(This used to be commit fcc7a197b1)
2003-02-15 02:03:55 +00:00
Jelmer Vernooij
1cf9b9be79 Remove obsolete file lib/netatalk.c - We have a VFS module now
(This used to be commit 28653989cf)
2003-02-15 02:02:51 +00:00
Jeremy Allison
798b526c1c Patch based on work by Michael Steffens <michael_steffens@hp.com> to wrap
all cm_get_XX calls and their subsequent requests in a retry loop in case
we've temporarily lost connection to the DC. Makes winbindd more reliable.
Jeremy.
(This used to be commit 20798ac739)
2003-02-15 01:34:37 +00:00
Jeremy Allison
3b257cf500 Patch based on work by Michael Steffens <michael_steffens@hp.com> to wrap
all cm_get_XX calls and their subsequent requests in a retry loop in case
we've temporarily lost connection to the DC. Makes winbindd more reliable.
Jeremy.
(This used to be commit 81f358b632)
2003-02-15 01:34:34 +00:00
Andrew Bartlett
e4202a9fe7 Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enable
users w/o full administrative access on computer accounts to join a
computer into AD domain.

The patch and detailed changelog is available at:
http://www.itcollege.ee/~aandreim/samba

This is a list of changes in general:

1. When creating machine account do not fail if SD cannot be changed.
   setting SD is not mandatory and join will work perfectly without it.
2. Implement KPASSWD CHANGEPW protocol for changing trust password so
   machine account does not need to have reset password right for itself.
3. Command line utilities no longer interfere with user's existing
   kerberos ticket cache.
4. Command line utilities can do kerberos authentication even if
   username is specified (-U). Initial TGT will be requested in this case.

I've modified the patch to share the kinit code, rather than copying it,
and updated it to current CVS.  The other change included in the original patch
(local realms) has been left out for now.

Andrew Bartlett
(This used to be commit ce52f1c2ed)
2003-02-15 00:29:21 +00:00
Andrew Bartlett
3b2693f1ae Move our NTLMSSP code into easily seperated peices, not relying on the whole
of libsmb.

Andrew Bartlett
(This used to be commit b5ec7efa80)
2003-02-15 00:10:09 +00:00
Andrew Bartlett
a2781ba60d Oops, forgot the header file changes.
(This used to be commit 5492fc1144)
2003-02-14 23:34:32 +00:00
Andrew Bartlett
3ca3e92376 NTLMSSP parinoia - we really don't want to run over the end of our blob,
and make sure we can never get an 'authenticate' packet without a challenge.

Andrew Bartlett
(This used to be commit 4d94f8e691)
2003-02-14 23:13:05 +00:00
Jeremy Allison
4cd6e31bd3 Ensure that only parse_prs.c access internal members of the prs_struct.
Needed to move to disk based i/o later.
Jeremy.
(This used to be commit 4c3ee228fc)
2003-02-14 23:04:03 +00:00
Jeremy Allison
8fc1f1aead Ensure that only parse_prs.c access internal members of the prs_struct.
Needed to move to disk based i/o later.
Jeremy.
(This used to be commit a823fee5b4)
2003-02-14 22:55:46 +00:00
Gerald Carter
89d480a933 off by one bug in string length; CR 1159
(This used to be commit aaefa889ad)
2003-02-14 22:25:12 +00:00
Gerald Carter
4f6c2ab895 off by one bug in string length; CR 1159
(This used to be commit 4b5b0bcd90)
2003-02-14 22:24:49 +00:00
Jim McDonough
a38e300830 Put dynrpc modules as part of make all, when specified in configure.
(This used to be commit d5b5a8e1f1)
2003-02-14 20:19:50 +00:00
Jim McDonough
bfdf6c9053 Put dynrpc modules as part of make all, when specified in configure.
(This used to be commit b44be1c7c4)
2003-02-14 20:10:43 +00:00
Jim McDonough
4226279bb7 Bring in line with HEAD version...mostly formatting changes to clean up diffs.
(This used to be commit ef43dff0bf)
2003-02-14 19:42:54 +00:00
Andrew Bartlett
938fd5652d Further extract our NTLMv2 code into smbencrypt.c, prior to merge into our
NTLMSSP client code.

Andrew Bartlett
(This used to be commit eaa8e7d1f8)
2003-02-14 10:47:07 +00:00
Martin Pool
dc75b89bfc Doc
(This used to be commit 11c1e712d4)
2003-02-14 06:34:59 +00:00
Tim Potter
3b23695db6 Simplify some return values in gencache functions:
-	return ret == 0 ? True : False;
+	return ret == 0;

and

-	return tdb_close(cache) ? False : True;
+	return tdb_close(cache) != -1;
(This used to be commit 026b988b13)
2003-02-14 05:07:05 +00:00
Jim McDonough
49d3f7bc81 merge from HEAD - enable dynamic RPC modules
(This used to be commit d9c485b010)
2003-02-14 00:48:28 +00:00
Tim Potter
3807a1dadf Mop and bucket for trusted domain enumeration fix.
(This used to be commit 5cfb30551a)
2003-02-14 00:31:30 +00:00
Tim Potter
afb9105c3d Fix for trusted domains scan not working inspired by Ken Cross.
(Sorry - I should have checked this in yesterday but forgot)
(This used to be commit 7420ddcda8)
2003-02-14 00:23:31 +00:00
Rafal Szczesniak
ce306f8b08 A few typo fixes Andrew eventually let off to me.
Rafal
(This used to be commit 16a66cf17a)
2003-02-13 21:40:35 +00:00
Jeremy Allison
02da4c7944 Removed unused variable.
Jeremy.
(This used to be commit a29f1aa85f)
2003-02-13 19:49:28 +00:00
Jeremy Allison
db937d3965 Removed unused variable.
Jeremy.
(This used to be commit c9654c8ec7)
2003-02-13 19:42:50 +00:00
Alexander Bokovoy
ff1db7b4f7 Fix typo in WIFSIGNALED (as per Waider's report)
(This used to be commit 4463ffeed9)
2003-02-13 16:29:12 +00:00
Jeremy Allison
f4092b90bf Merge JohnR's patch.
Removed extra copy of server name in the printername field (it was
mangling the the name to be \\server\\\server\printer ... yes, there
were 3 backslashes) reported by get & enum jobs level 2.
Jeremy.
(This used to be commit d079edf732)
2003-02-13 06:52:45 +00:00
Jeremy Allison
0ab1705cbc Merge JohnR's patch.
Removed extra copy of server name in the printername field (it was
mangling the the name to be \\server\\\server\printer ... yes, there
were 3 backslashes) reported by get & enum jobs level 2.
Jeremy.
(This used to be commit 2d63f3a13d)
2003-02-13 06:51:51 +00:00
Martin Pool
1f2a901d78 Add FIXME about checking exit code for popen'd commands.
Fix typo.
(This used to be commit 2b5664823e)
2003-02-13 04:46:55 +00:00
Martin Pool
404a3f34c8 waitstatus audit: Correctly handle case where smbmnt is killed by a
signal.  Previously this was incorrectly treated as success.
(This used to be commit fe5582c1b2)
2003-02-13 04:45:40 +00:00
Martin Pool
c8659d04a9 Merge from HEAD to allow automatic Doxygen generation.
(This used to be commit ff8674d13b)
2003-02-13 01:47:03 +00:00
Martin Pool
11f07557bf Doc
Set HTML output directory
(This used to be commit 38b5a219ee)
2003-02-13 01:05:56 +00:00
Martin Pool
e93038c88b Update towards automatic building on dp.samba.org:
Remove features not supported by Doxygen 1.2.14 on RH7.3.

Remove dependence on dot tool, which is apparently not in Redhat, and
doesn't produce very interesting results for C code anyhow.

Make Doxygen --quiet to support running from cron.

Remove references to files which are gone from Samba
(CodingSuggestions).

Put HTML output in the right directory.
(This used to be commit 5904260f48)
2003-02-13 00:37:35 +00:00
Jeremy Allison
33eb26ba5e Added code based on Michael Steffens <michael.steffens@hp.com> uid/gid
caching code. Reduces load on winbindd. Probably should be moved to
use gencache at some future date.
Jeremy.
(This used to be commit f2674d1ac9)
2003-02-12 23:51:08 +00:00
Jeremy Allison
bf6dfb26e9 Added code based on Michael Steffens <michael.steffens@hp.com> uid/gid
caching code. Reduces load on winbindd. Probably should be moved to
use gencache at some future date.
Jeremy.
(This used to be commit 19f577e23b)
2003-02-12 23:51:05 +00:00
Jeremy Allison
7fe6742d04 Fixes for HPUX only having limited POSIX lock range from Michael Steffens <michael.steffens@hp.com>
Jeremy.
(This used to be commit e9b4fb8b9a)
2003-02-12 20:40:29 +00:00
Jeremy Allison
fbdda574d8 Fixes for HPUX only having limited POSIX lock range from Michael Steffens <michael.steffens@hp.com>
Jeremy.
(This used to be commit ba0f47f78d)
2003-02-12 20:38:02 +00:00
Gerald Carter
3bfd440620 adding more descriptions for nt status codes
(This used to be commit 2fa33fcaee)
2003-02-12 16:44:13 +00:00
Gerald Carter
8e5585a20f adding more descriptions for nt status codes
(This used to be commit dfceb0aab5)
2003-02-12 16:43:47 +00:00
Andrew Bartlett
497470214d merge desired_access for open_printer_ex from HEAD, allowing cupsaddsmb to
work again!

Andrew Bartlett
(This used to be commit 94976a4128)
2003-02-12 11:23:24 +00:00
Andrew Bartlett
749d90dfc7 Match Samba 2.2 by chosing the correct desired access, and getting cupsaddsmb
back working again.

Andrew Bartlett
(This used to be commit 512e65a6a6)
2003-02-12 11:17:35 +00:00
Andrew Bartlett
7ceed4213a Merge from HEAD: Fix NULL pointer de-reference in arguments to tdb_pack.
Andrew Bartlet
(This used to be commit 0809670d0f)
2003-02-12 10:57:39 +00:00
Andrew Tridgell
faf30e69ae initial server side privileges implementation, using a tdb. This needs to be hooked into pdb, and we need some access control on changing privileges. That's next
(This used to be commit f4f1f84a6b)
2003-02-12 09:14:35 +00:00
Andrew Bartlett
ce7db9bdcc Prevent NULL-pointer induced segfaults.
Is tdb_pack in appliance_head different for some reason?

Andrew Bartlett
(This used to be commit 9deb14a2e6)
2003-02-12 06:38:18 +00:00
Tim Potter
e63fc878d9 Merge of smbcontrol debuglevel fixes from HEAD.
(This used to be commit 77ae3360e3)
2003-02-12 01:22:33 +00:00
Tim Potter
a68de8f42c Merge of nicer error message for gencache open error from HEAD.
(This used to be commit 23ca540005)
2003-02-12 01:20:56 +00:00
Tim Potter
0f2d66a141 Sync with HEAD version.
(This used to be commit 3a912bee74)
2003-02-12 01:19:34 +00:00
Jeremy Allison
7d4eef34e3 Correctly return access denied on share mode deny when we can't open the
file. This is a regression that was damaged by other code.
Jeremy.
(This used to be commit 7844a53df7)
2003-02-12 01:13:35 +00:00
Jeremy Allison
b792454963 Correctly return access denied on share mode deny when we can't open the
file. This is a regression that was damaged by other code.
Jeremy.
(This used to be commit 5cdc957ea6)
2003-02-12 01:12:33 +00:00
Jeremy Allison
cba08587d3 Merge from HEAD - pull_ucs2_talloc() should pull to a char**, not a void**
Jeremy.
(This used to be commit 81437e2ad0)
2003-02-12 01:09:35 +00:00
Jeremy Allison
4403a1655c Merge from HEAD...setup the %U substitution in winbindd for the homedir template
Jeremy.
(This used to be commit efc4b738ae)
2003-02-12 01:08:40 +00:00
Jeremy Allison
abbbaa2f6f Merging from HEAD - add a note about a better method for finding netbios name of workgroup
(not implemented yet)
Jeremy.
(This used to be commit c0eab99753)
2003-02-12 01:07:48 +00:00
Jeremy Allison
dc1f0fd79a Ensure we are not forgetting our janitorial duties...
Jeremy.
(This used to be commit 7812370cab)
2003-02-12 01:06:52 +00:00
Andrew Tridgell
0e42cf2460 setup the %U substitution in winbindd for the homedir template
(This used to be commit 6186c10ceb)
2003-02-12 00:56:14 +00:00
Andrew Tridgell
8c60a408e1 add a note about relative opens with blank paths - its a re-open!
(not implemented yet)
(This used to be commit bceac9cdde)
2003-02-12 00:41:35 +00:00
Andrew Tridgell
3b562efcbd add a note about a better method for finding netbios name of workgroup
(not implemented yet)
(This used to be commit 8a8cca78ad)
2003-02-12 00:40:41 +00:00
Andrew Tridgell
c713b6aaf5 pull_ucs2_talloc() should pull to a char**, not a void**
(This used to be commit 3cf539421f)
2003-02-12 00:39:36 +00:00
Andrew Tridgell
5b70946744 removed a duplicate copy of smb_io_sid_array()
(This used to be commit 2ef72f9500)
2003-02-11 22:53:57 +00:00
Andrew Bartlett
ef6be9db1e Merge from HEAD: Patch by Anthony Liguori <aliguor@us.ibm.com> to replace scandir() with portable readdir() calls.
Andrew Bartlett
(This used to be commit b9ca0b9ef3)
2003-02-11 21:56:38 +00:00
Andrew Tridgell
8ddccd47c7 added server stubs for lsa_enum_acct_with_right
(This used to be commit aa2abacaf4)
2003-02-11 21:55:48 +00:00
Andrew Bartlett
2d220ef00d Patch from Anthony Liguori <aliguor@us.ibm.com> to remove scandir() portability
madness.

Andrew Bartlett
(This used to be commit 7836b9a58d)
2003-02-11 21:54:36 +00:00
Jim McDonough
270631338d remove trailing 'a' from VFS_MODULES targets...fix build
(This used to be commit fa4961b1fc)
2003-02-11 19:57:17 +00:00
Jeremy Allison
4689a33497 Fixup delete on close torture.
Jeremy.
(This used to be commit b031e81f4f)
2003-02-11 02:29:04 +00:00
Jeremy Allison
e6ac820d81 Fix delete on close semantics to match W2K. I (think:-) I understand it now :-).
Thanks to Nir Livni <nirl@cyber-ark.com> for giving me the test case to
track it down.
Jeremy.
(This used to be commit 41894489e8)
2003-02-11 02:24:51 +00:00
Jeremy Allison
cc99ea0ef0 Fix delete on close semantics to match W2K. I (think:-) I understand it now :-).
Thanks to Nir Livni <nirl@cyber-ark.com> for giving me the test case to
track it down.
Jeremy.
(This used to be commit c98ebb3031)
2003-02-11 02:24:45 +00:00
Shirish Kalele
70f1fcb87b Fix the msdfs proxy handling code in dfsenum to return the cumulative number of
dfs links encountered. Previously the number was being mistakenly reset to 1.
Thanks to Guenther Deschner <gd@suse.de> for pointing this out and a fix.
[Check into SAMBA_3_0]
(This used to be commit 041a1dd543)
2003-02-11 01:45:48 +00:00
Shirish Kalele
f687e95377 Fix the msdfs proxy handling code in dfsenum to return the cumulative number of
dfs links encountered. Previously the number was being mistakenly reset to 1.
Thanks to Guenther Deschner <gd@suse.de> for pointing this out and a fix.
[Check into HEAD]
(This used to be commit 9307942a89)
2003-02-11 01:45:15 +00:00
Gerald Carter
89393d93b0 autogen - cope with autoconf-2.53/2.13 systems (like RH 7.3)
findsmb - use @PERL@
(This used to be commit f869db787b)
2003-02-10 17:31:25 +00:00
Gerald Carter
a9f1ec0d6b autogen - cope with autoconf-2.53/2.13 systems (like RH 7.3)
findsmb - use @PERL@
(This used to be commit 1585385729)
2003-02-10 17:30:20 +00:00
Richard Sharpe
0ad56b68a2 Fix a mistake spotted by Metze
(This used to be commit cf167e9249)
2003-02-10 16:42:24 +00:00
Andrew Bartlett
bb9c664622 Clean up our NTLMv2 code by moving the grunt work into a helper function.
Andrew Bartlett
(This used to be commit 6789e237d7)
2003-02-10 12:22:57 +00:00
Andrew Bartlett
8a20407442 Cleanups: (merge from HEAD)
- use safe_strcpy() instead of pstrcpy() for malloc()ed strings

 - CUPS: a failure in an attempt to automaticly add a printer is not level 0 stuff.

 - Fix up a possible Realloc() failure segfault

Andrew Bartlett
(This used to be commit c1cfc296c2)
2003-02-10 11:47:21 +00:00
Andrew Tridgell
6c66e42d2c added the 'lsaenumacctwithright' command to rpcclient. This allows you
to lookup what SIDs have a particular privilege (that is how
privileges are stored).
(This used to be commit 3ddb5fb0dd)
2003-02-10 11:31:23 +00:00
Andrew Bartlett
baff308f16 As metze mentioned, this is the proper way to find perl...
Andrew Bartlett
(This used to be commit f364921864)
2003-02-10 10:36:09 +00:00
Andrew Bartlett
6fa61ac2a8 perl might not be in /usr/bin/perl, so try and find it in the path.
Perhaps this generated file should be autobuilt on samba.org for the
build farm and the tarballs.

Andrew Bartlett
(This used to be commit b8a07da680)
2003-02-10 09:23:30 +00:00
Andrew Bartlett
c46f8a0249 Use safe_strcpy() instead of pstrcpy() for malloced strings.
Andrew Bartlett
(This used to be commit 333d313c9d)
2003-02-10 09:20:09 +00:00
Andrew Bartlett
a9d598d6bb Failure to find a CUPS printer, when auto-adding printers is not a level 0 error.
Andrew Bartlett
(This used to be commit 79650e08c9)
2003-02-10 09:18:04 +00:00
Andrew Bartlett
ec7a1994b0 Some cleanups:
- Don't use pstrcpy into an allocated string - use safe_strcpy() directly
instead.

- Keep a copy of the 'server_info' attached to the vuid.  In future use this
for things like the session key, homedir and full name instead of current
copies.

- Try to avoid memory leak/segfault on Realloc failure

- clear up #endif comments

Andrew Bartlett
(This used to be commit 162477bb08)
2003-02-10 09:16:05 +00:00
Andrew Bartlett
868d169a40 (only for HEAD at the moment).
Add NTLMv2 support to our client, used when so configured ('client use NTLMv2 =
yes') and only when 'client use spengo = no'.  (A new option to allow the
client and server ends to chose spnego seperatly).

NTLMv2 signing doesn't yet work, and NTLMv2 is not done for NTLMSSP yet.

Also some parinoia checks in our input parsing.

Andrew Bartlett
(This used to be commit 85e9c060ea)
2003-02-09 12:26:58 +00:00
Jeremy Allison
4703248a8e Ensure we return NOSPACE if we can't fast allocate a print job.
Jeremy.
(This used to be commit 82cf8aa747)
2003-02-08 01:04:43 +00:00
Jeremy Allison
d05322efce Ensure we return NOSPACE if we can't fast allocate a print job.
Jeremy.
(This used to be commit 9cd29f2bac)
2003-02-08 01:04:26 +00:00
Andrew Bartlett
8f166a9725 merge from HEAD - x_fileno, not fileno on an XFILE
(This used to be commit e3468d8edc)
2003-02-08 01:01:49 +00:00
Andrew Bartlett
99f9caebe4 One more fix for the difference between FILE and X_FILE.
(This used to be commit 7e56014b28)
2003-02-08 01:00:55 +00:00
Andrew Bartlett
b36a53b0cb Merge from HEAD - don't mix FILE and X_FILE - fixes debian bug
http://bugs.debian.org/178219 where the first 4096 bytes where being chewed
into the FILE buffer, and never available to X_FILE's read.

Andrew Bartlett
(This used to be commit 8af72c1384)
2003-02-08 00:08:23 +00:00
Andrew Bartlett
315e4f513b Ensure we don't get problems between FILE and X_FILE buffers - always use the
x_ varient of the command.

Andrew Bartlett
(This used to be commit 6a028507f0)
2003-02-07 23:39:47 +00:00
Jeremy Allison
5bc835c188 Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit 45d4e58ca5)
2003-02-07 22:52:35 +00:00
Jeremy Allison
9e8fc1ee4e Samba janitors: applying mbp's redundant umask fix.
Jeremy.
(This used to be commit b54f6bf06c)
2003-02-07 22:52:19 +00:00
Jeremy Allison
a90def7e8a Samba janitor: adding mbp's umask patch :-).
Jeremy.
(This used to be commit d4d8d27bf1)
2003-02-07 21:59:51 +00:00
Jeremy Allison
5bff9ad142 Samba janitor: adding mbp's umask patch :-).
Jeremy.
(This used to be commit babbbd9c65)
2003-02-07 21:59:42 +00:00
Gerald Carter
36657d41ce check pointer before dereferencing it
(This used to be commit 786d91d75c)
2003-02-07 16:20:58 +00:00
Gerald Carter
67acaa0026 check pointer before dereferencing it
(This used to be commit 8712bd1f8e)
2003-02-07 16:20:42 +00:00
Volker Lendecke
13f65125ac Invert flag testing
(This used to be commit 05397c526d)
2003-02-07 08:03:37 +00:00
Volker Lendecke
6b703fc40a Revert Flag testing upon abartlet's request ;-)
Volker
(This used to be commit e8f751fe84)
2003-02-07 08:02:18 +00:00
John Terpstra
51bf3e0b76 Added my name to copyright.
(This used to be commit 143df82aeb)
2003-02-07 05:01:06 +00:00
John Terpstra
5eac9f60cc Added extended audit module that logs to smbd log as well as syslog.
(This used to be commit d2fe7e38b2)
2003-02-07 05:00:34 +00:00