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

10757 Commits

Author SHA1 Message Date
Martin Pool
335fbbfbc9 add_initial_entry should fail if string_to_sid fails.
(This used to be commit bb095dc28d8369457286225ac63e03070889f394)
2003-02-18 01:05:56 +00:00
Andrew Bartlett
b70258af01 Patch from vorlon@debian.org to split out our -lacl dependency to only smbd
and vfstest.
(This used to be commit bcbc2213230e95d732a774b5aee67295fba4380b)
2003-02-18 00:54:22 +00:00
Martin Pool
54a09519a4 Doxygen janitor and some doc typo fixes.
(This used to be commit 82414706e6659c1638936d9b9afdb9329109f58f)
2003-02-18 00:52:42 +00:00
Martin Pool
5a35b2138e Doxygen janitor. No other changes.
(This used to be commit fa38e7956c21b828ba208282ef0ac85c2b66ff22)
2003-02-18 00:41:13 +00:00
Andrew Bartlett
108580c224 The cli_send_tconX code already determines to send \\server\share to port 139
and share to 445, so doing this only confuses the issue (sending
\\server\\server\share to 139) and makes debugging specific error codes more
difficult.

Andrew Bartlett
(This used to be commit 1a723bcda72901dac00b36955e860e3af23c0dc6)
2003-02-18 00:36:37 +00:00
Martin Pool
28dff282a9 Update config.guess, config.sub to the versions from the GNU autotools
2003-01-10 release.  This adds or improves detection for many host
platforms.
(This used to be commit 24fe55ea6d55a78d662942e78e192a84809fcba6)
2003-02-17 23:49:01 +00:00
Martin Pool
789780275c Add comment explaining the -DDEVELOPER safe_strcpy overflow hack.
(This used to be commit 90e1d8bdfa9ec0a4f3795d9a89db1d2324447b68)
2003-02-17 23:33:55 +00:00
Jeremy Allison
21e7ce38ab Correctly check for inet_addr fail. Patch from gregor.7@osu.edu.
Jeremy.
(This used to be commit fb3548e5080812c037c2c134504cc9af4ecbfedd)
2003-02-17 21:19:09 +00:00
Volker Lendecke
0cf080f719 Dummy commit, I can't get through to samba-cvs@samba.org. It can't really
remember under what mail address I have to post.

My last commit to this file made it compile again, my fingers were a bit
too fast to really type this message.

Sorry for this confusion,

Volker
(This used to be commit 3b905f5a16dff8ce6742a92fd403cb720707f513)
2003-02-17 21:12:21 +00:00
Volker Lendecke
bf89801bd2 cmd_srvsvc.c
(This used to be commit fcfbb3c430b2e48819c0c1852bc154661c4b7adf)
2003-02-17 21:04:09 +00:00
Andrew Bartlett
bc8c03b662 This is a very nice way to detect pstrcpy() into a malloc()ed string, but
it really is a developer hack...

Andrew Bartlett
(This used to be commit 3588ebb35b14422141d4070413185195b525038e)
2003-02-17 12:33:24 +00:00
Andrew Bartlett
cc0202884b This patch fixes one of my longest-standing pet hates with Samba :-).
When we look see if a user is in a list, and we try to 'expand' an @group, we
should lookup the user's own list of groups, rather than looking for all the
members of a group.

I'm sure this will fix some nasty performance issues, particularly on large
domains etc.  In particular, this avoids contacting winbind at all, if the
group is not a winbind group.

(This caused a deadlock on my winbind-on-PDC setup).

The groups list always includes the user's primary group, as per the
getgrouplist manpage, and my recent changes to our implementation.

Andrew Bartlett
(This used to be commit 9be21976f7662ebe6eb92fff7cecbdb352eca334)
2003-02-17 12:27:34 +00:00
Andrew Bartlett
af249535bd Don't leak a session_key worth of memory at the end of the NTLMSSP auth.
(This used to be commit ae9765b84de0fd6eff790b3bff26dd3d43ec2bd6)
2003-02-17 12:20:20 +00:00
Andrew Bartlett
e33551bc0c Set the length back to zero when we free the data_blob.
(This used to be commit 4560594a67056ee1a5e51a122d1b254944e7c266)
2003-02-17 12:19:12 +00:00
Andrew Bartlett
55da3690b7 Try to make our getgrouplist replacement better match the 'real' implemenations.
In particular, make sure we include the primary gid in the list.

Andrew Bartlett
(This used to be commit 0cd4b339b7eff55019caaeaa998d5e70b2eed200)
2003-02-17 12:04:09 +00:00
Martin Pool
f203f1643c Typo: /mized/mixed/
(This used to be commit ada36d2fe38dbb07886a671a6d85b6317ab230a8)
2003-02-17 06:54:43 +00:00
Martin Pool
645d68a45a Don't pstrcpy into an fstring. (Harmless in this case since it comes
from an environment variable.)
(This used to be commit 9f9077346bf9f7c96376169c60aa893f15fb9d2c)
2003-02-17 06:28:58 +00:00
Martin Pool
541ed81a63 Start reworking rpcclient to use popt rather than next_token to parse
command lines.  This makes the code much simpler and also stops
trivial syntax errors from causing a crash.

Also fix support for semicolon-separated commands in -c, which is
promised by the manual but apparently never working due to an
off-by-one error.
(This used to be commit d85a25e733fe970ae96a02a5cbc892f2b8dca1b7)
2003-02-17 05:42:36 +00:00
Tim Potter
d9b33602a2 Added SRVSVC pipe support. I've started implementing NetServerGetInfo()
(This used to be commit 8e0d781995b56dd1cd348baadd494bb8e64c10bc)
2003-02-17 04:43:09 +00:00
Tim Potter
96d19c3876 Add KRBCLIENT_OBJ to PYTHON_OBJ list.
(This used to be commit 651be759b3db98133feb6fe8c578964ec7b5cf71)
2003-02-17 04:41:08 +00:00
Tim Potter
e486396267 Return a WERROR instead of a NTSTATUS like the rest of the srvsvc
rpc calls.
(This used to be commit 619af61644ecc221c45e5cf69d562451b5b9f951)
2003-02-17 04:35:32 +00:00
Andrew Bartlett
ffacf609a6 If we didn't make the server_info correctly, then don't segfault trying to
set the 'guest' bit.

Andrew Bartlett
(This used to be commit 960c53bf952de4431da4e90da035fcfbe98f1bd7)
2003-02-17 00:58:47 +00:00
Andrew Bartlett
b2a253bd47 People were being tripped up by the fact that we havn't updated acconfig.h
as we don't need it for autoconf 2.53.  Remove it from CVS, and assert the
newer autotools in configure.in

Andrew Bartlett
(This used to be commit 14b38c004f4bd5b695d04941b03e3bfa31372da3)
2003-02-17 00:07:38 +00:00
Andrew Bartlett
b786858241 Add the 'session key' output of the NTLMSSP exchange to the cli struct, so
it can be used for 'net rpc join'.

Also fix a bug in our server-side NTLMSSP code - a client without any domain
trust links to us may calculate the NTLMv2 response with "" as the domain.

Andrew Bartlett
(This used to be commit ddaa42423bc952e59b95362f5f5aa7cca10d1ad4)
2003-02-16 22:10:48 +00:00
Richard Sharpe
12074e7979 Recover much of my changes to editreg.c. Add some const and start coding
the regedit file parser etc.
(This used to be commit 5040b498675b91cd18bc7fe4456c94df0a8fa41d)
2003-02-16 17:16:06 +00:00
Gerald Carter
a703d55cd7 * set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736
* never save a pointer to an automatic variable (they go away)
  implement a deep copy for SPOOLSS_NOTIFY_MSG to correct
  messages being sent that have junk for strings;
  fix in response to changes for CR 1504
(This used to be commit 043b9dff22e909fc290c34d879cad8b4c980fc13)
2003-02-15 23:36:18 +00:00
Alexander Bokovoy
22c875943d Third-party configuration scripts may produce undesirable additions to CFLAGS/CPPFLAGS
and LIBS/LDFALGS. In particular, they often don't check where the appropriate libraries
were installed and pass -I/usr/include and -L/usr/lib as part of CFLAGS/LDFLAGS.

While the latter isn't dangerous, passing system include directory through -I lead
to change of its status in CPP from system to user-defined in many cases.

This patch cleans up CFLAGS/CPPFLAGS from errorenous -I/usr/include and LIBS/LDFLAGS
from -L/usr/lib. This is done as two m4 macros which are called before AC_OUTPUT.
(This used to be commit 643172ac1a9b53823d704690eb03120074bbef78)
2003-02-15 22:51:15 +00:00
Andrew Bartlett
88a4d79e7b Don't return NULL pointers for now.
We should look into how to deal with NULL v "" strings, and the NTLMSSP code
underneath properly at some stage.

Andrew Bartlett
(This used to be commit dc934412b0190ea75073cccddac45e74ebcd4a6b)
2003-02-15 21:41:01 +00:00
Simo Sorce
584206dccf fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report
(This used to be commit 4a3c6c62d979707900b95e6c38b0132f522269ca)
2003-02-15 21:36:28 +00:00
Jelmer Vernooij
ab39da9878 Some small updates
(This used to be commit 10a97c22637ce5320b4d30d7724d200d25fbfd25)
2003-02-15 16:35:20 +00:00
Alexander Bokovoy
9e99ad57ea When checking for tgetent, include libtinfo from recent Ncurses as well
(This used to be commit c88a5b1abaaee9aea3ece5677fce8b79bcd00552)
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 ca27334ba0f2ffbe0fd2a18ef5edf644d4e52190)
2003-02-15 15:47:32 +00:00
Jelmer Vernooij
5296e0d1e8 Add draft of universal passdb document that combines ENCRYPTION.sgml,
Samba-LDAP-HOWTO.sgml, pdb_mysql.sgml and pdb_xml.sgml
(This used to be commit fc26d1bfd15e8762628f115dd18e9d716bbea0e8)
2003-02-15 14:44:25 +00:00
Jelmer Vernooij
3e734b7a44 Remove obsolete textdocs - they have been migrated to SGML
(This used to be commit 327075d14f266170de140d728b4a4a4283e65026)
2003-02-15 14:17:03 +00:00
Jelmer Vernooij
b401c25c72 Fix *a lot* of syntax errors
(This used to be commit 41753997ae427bdca86c98d35f0aff7eb3293995)
2003-02-15 14:13:55 +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 b2b66909ac2e251f8189e0696b6075dbf748521a)
2003-02-15 12:20:22 +00:00
Jelmer Vernooij
ab1035aa1b Use more portable @SHLIBEXT@ instead of .so
(This used to be commit ba25db83f241a28200132f3dc52f7f5f93a3b00e)
2003-02-15 02:04:41 +00:00
Jelmer Vernooij
1cf9b9be79 Remove obsolete file lib/netatalk.c - We have a VFS module now
(This used to be commit 28653989cfe5d705b99a4888c0c3fb79d1f89162)
2003-02-15 02:02:51 +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 81f358b632dbf7043d2a716359b0fcf7c647af0a)
2003-02-15 01:34:34 +00:00
Jelmer Vernooij
d749716900 Add reference to example mysql.dump file
(This used to be commit ed46cb9e64e5c58cef6e2469438bacaae9dcdce8)
2003-02-15 01:08:08 +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 ce52f1c2ed4d3ddafe8ae6258c90b90fa434fe43)
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 b5ec7efa80478187124c1cfa8c7fcc4036506a37)
2003-02-15 00:10:09 +00:00
Andrew Bartlett
a2781ba60d Oops, forgot the header file changes.
(This used to be commit 5492fc1144abac74959b7e0938ce1bb387fa7429)
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 4d94f8e6912c1339515cd1f68d1b698e7c699626)
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 4c3ee228fcdb089eaeead95e79532a9cf6cb0de6)
2003-02-14 23:04:03 +00:00
Gerald Carter
4f6c2ab895 off by one bug in string length; CR 1159
(This used to be commit 4b5b0bcd9092a6003e3494dda949e03e803ec0aa)
2003-02-14 22:24:49 +00:00
Jim McDonough
bfdf6c9053 Put dynrpc modules as part of make all, when specified in configure.
(This used to be commit b44be1c7c4b8c7a8c1d35fe8b24aeff0ff0af32b)
2003-02-14 20:10:43 +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 eaa8e7d1f82b30e7af14a0a58d7ca3eb66a06053)
2003-02-14 10:47:07 +00:00
Martin Pool
dc75b89bfc Doc
(This used to be commit 11c1e712d48438bd80c4f347a2f31e308bd54d7a)
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 026b988b132ec76fdd3821639960658e1d36cd43)
2003-02-14 05:07:05 +00:00