1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

10206 Commits

Author SHA1 Message Date
Andrew Bartlett
a65b65c87a Make sure these values are never uninitialsised.
(This used to be commit eacb8dde7a)
2003-02-24 03:43:49 +00:00
Andrew Bartlett
630944d179 Cleint-side-auth/kerberos fixes from HEAD, and don't connect to a share
twice, let the libsmb code determine what form the share name should take.

Andrew Bartlett
(This used to be commit a25f612664)
2003-02-24 03:28:37 +00:00
Andrew Bartlett
a9ae0df333 Iconv as seperate library fixes from HEAD
(This used to be commit 935c66f6a0)
2003-02-24 03:27:29 +00:00
Andrew Bartlett
e1d65985be Signed/unsigned fix from HEAD
(This used to be commit 723ce5c531)
2003-02-24 03:26:49 +00:00
Andrew Bartlett
ecd7fc59a8 Merge crypt(), ACL lib and shared lib changes from HEAD.
(This used to be commit e380224d8c)
2003-02-24 03:22:49 +00:00
Andrew Bartlett
11e98c0a4a Merge paramaters for client-side-auth updates.
(This used to be commit 68d3471127)
2003-02-24 03:22:09 +00:00
Andrew Bartlett
e822de1d85 Fix a small stuffup in the HEAD -> 3.0 merge
(This used to be commit cccec78cf2)
2003-02-24 03:14:46 +00:00
Andrew Bartlett
266ec4aac0 Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.
Andrew Bartlett
(This used to be commit 9ef0d40c3f)
2003-02-24 03:09:08 +00:00
Andrew Bartlett
ecad7bea2c Makefile updates for the client-side auth/kerberos merge.
(This used to be commit b32f3ecaf6)
2003-02-24 03:07:34 +00:00
Andrew Bartlett
52db4c6698 Missed a couple of files from the client-side kerberos merge
(This used to be commit 56934f303c)
2003-02-24 03:06:45 +00:00
Andrew Bartlett
98410be607 Merge off-by-one fix from HEAD (caused crash with --enable-developer)
(This used to be commit d714254130)
2003-02-24 03:03:15 +00:00
Andrew Bartlett
d1221c9b6c Merge from HEAD client-side authentication changes:
- new kerberos code, allowing the account to change it's own password
   without special SD settings required
 - NTLMSSP client code, now seperated from cliconnect.c
 - NTLMv2 client code
 - SMB signing fixes

Andrew Bartlett
(This used to be commit 837680ca51)
2003-02-24 02:55:00 +00:00
Andrew Bartlett
e075e1dfa9 Missed one in the previous merge - user_ok() and user_in_group() now take
an optional list of groups the user is in.
(This used to be commit 39f3bec0f6)
2003-02-24 02:47:14 +00:00
Andrew Bartlett
e72ecdc862 Merge of server-side authentication changes to 3.0:
- user_ok() and user_in_group() now take a list of groups, instead of
   looking for the user in the members of all groups.

 - The 'server_info' returned from the authentication is now kept around
  - in future we won't copy the sesion key, username etc, we will just
    referece them directly.

 - rhosts upgraded to use the SAM if possible, otherwise fake up based on
   getpwnam().

 - auth_util code to deal with groups upgraded to deal with non-winbind domain
   members again.

Andrew Bartlett
(This used to be commit 74b5436c75)
2003-02-24 02:35:54 +00:00
Martin Pool
0fc93128b8 Add comment about Samba character sets, from explanation by abartlet.
(This used to be commit 822f6c2f38)
2003-02-24 01:10:15 +00:00
Jeremy Allison
285a3b0ef8 When checking is_locked() new WRITE locks conflict with existing READ locks even
if the context is the same. See LOCKTEST7 in smbtorture.
Jeremy.
(This used to be commit 1698092ba5)
2003-02-22 01:09:57 +00:00
Gerald Carter
01490bc0d2 s/unistr2_to_dos/unistr2_to_ascii/ to fix compile
(This used to be commit de6a2d154e)
2003-02-21 19:02:07 +00:00
Gerald Carter
380635538b couple of merges from APP_HEAD
* performance optimization in enumprinterdataex() when keyname is empty
  * fix a few typos in comments
  * reload services after addprinter_command()

dump registry data in ascii when the key is REG_SZ or REG_MULTI_SZ
(This used to be commit 3fc90ea1d9)
2003-02-21 17:04:01 +00:00
Gerald Carter
b0415dfd7b patch from Hal Roberts check for a valid [f]chmod_acl function pointer before calling it. Fixes seg fault in audit VFS module
(This used to be commit e5acebbe79)
2003-02-21 16:15:44 +00:00
Jim McDonough
217945cfc8 Fix IRIX build...void fn can't return another void fn
(This used to be commit e0c1f9ef61)
2003-02-21 14:38:14 +00:00
Jeremy Allison
486fa37dc6 Added comments to make it clearer when we're assigning a pointer that it
must not be freed afterwards.
Jeremy.
(This used to be commit 4015e39d36)
2003-02-21 06:25:58 +00:00
Tim Potter
e5249ff9b0 Ignore errors on python_clean target.
(This used to be commit 9e4eba0ae5)
2003-02-21 05:51:37 +00:00
Jeremy Allison
eae0617c4e Added Volkers "print server role" patch.
Jeremy.
(This used to be commit b14e174c65)
2003-02-20 22:09:54 +00:00
Jelmer Vernooij
aa6380100a Compile in lib/module.o
(This used to be commit adc5a4a263)
2003-02-20 19:21:20 +00:00
Jelmer Vernooij
7859c7df44 Merge in smb_load_module() function from HEAD
(This used to be commit 6cb124247d)
2003-02-20 19:14:55 +00:00
Jelmer Vernooij
896e133c3c Remove obsolete files
(This used to be commit 1a68ead433)
2003-02-20 19:13:37 +00:00
Jeremy Allison
7308d1574e Ensure tdb error code is set for corrupt and i/o errors before calling
the log function. This allows the log function to take action.
Jeremy.
(This used to be commit fcaacb5fab)
2003-02-20 19:03:11 +00:00
Martin Pool
9a55edce96 (Merge from APPLIANCE_HEAD)
CR1829: Fix memory leak when unpacking 'B' buffers in Python.

(PyList_Append creates a new reference to the added object, and so we
have to release the existing one.)
(This used to be commit fa500c77e3)
2003-02-20 03:35:11 +00:00
Tim Potter
39cf300869 Merge typo fix.
(This used to be commit 7406fabe7c)
2003-02-19 22:54:21 +00:00
Tim Potter
7024ab8dca Merge NTSTATUS vs WERROR return for cli_srvsvc_net_srv_get_info()
(This used to be commit 7edaf93796)
2003-02-19 22:52:50 +00:00
Tim Potter
aa1a248336 Merge cleanups of return values.
(This used to be commit bae354a20c)
2003-02-19 22:50:29 +00:00
Tim Potter
fe2f9f813d Merge some random looking setenv related kerberos stuff that makes
winbindd build again.
(This used to be commit c4f46890fe)
2003-02-19 22:50:05 +00:00
Tim Potter
5ef421f1d8 Merge of cleanups and srvsvc implementation from HEAD.
(This used to be commit dbea592877)
2003-02-19 22:47:49 +00:00
Jeremy Allison
3fd3bb38e2 Fix inspired by Stefan (metze) Metzmacher - cache the sidtype also.
Jeremy.
(This used to be commit efc9269780)
2003-02-19 22:31:05 +00:00
Simo Sorce
f21edd472c correct init, tx Stefan
(This used to be commit a2e1969ce5)
2003-02-19 22:26:54 +00:00
Jim McDonough
83a11f7f0e Sync with HEAD for verifying kerberos tickets.
(This used to be commit 77e1178a88)
2003-02-19 15:48:12 +00:00
Jim McDonough
4560329abb Fix segv in net ads join...an extra & was the culprit
(This used to be commit 1a9050a6fe)
2003-02-19 15:04:04 +00:00
Andrew Bartlett
26488953e7 Merge from HEAD: We don't need this any more, setenv() is in replace.c now
(This used to be commit cd6ad1f13b)
2003-02-19 12:33:32 +00:00
Andrew Bartlett
251ea1e677 Merge minor library fixes from HEAD to 3.0.
- setenv() replacement
 - mimir's ASN1/SPNEGO typo fixes
 - (size_t)-1 fixes for push_* returns
 - function argument signed/unsigned correction
 - ASN1 error handling (ensure we don't use initiailsed data)
 - extra net ads join error checking
 - allow 'set security discriptor' to fail
 - escape ldap strings in libads.
 - getgrouplist() correctness fixes (include primary gid)

Andrew Bartlett
(This used to be commit e9d6e2ea9a)
2003-02-19 12:31:16 +00:00
Jeremy Allison
96cafdd7c7 Fix from Corny.Bondad@hp.com for missing if (setting_acls) on default
perms.
Jeremy.
(This used to be commit 793609cbc2)
2003-02-19 02:34:44 +00:00
Jeremy Allison
647d65e08b Bit of a hack job to prevent smbprn.XXX jobs appearing in the queue if the
jobid is below the UNIX_JOB_START number.
Jeremy.
(This used to be commit 7ec1c8869d)
2003-02-19 01:43:33 +00:00
Jim McDonough
17ec9642cd base64_decode() with heimdal libs, so I've renamed it base64_decode_inplace().
(This used to be commit d510ff85fb)
2003-02-18 23:17:59 +00:00
Jim McDonough
d08116ffcb Sync w/HEAD - add DES_CBC_CRC encryption type
(This used to be commit c7934f5cb5)
2003-02-18 20:57:29 +00:00
Martin Pool
185d858dd2 Check return code of string_to_sid. (Merge from HEAD)
(This used to be commit 606bb47f24)
2003-02-18 07:15:52 +00:00
Martin Pool
188c5195ed Check return code of string_to_sid. (Merge from HEAD)
(This used to be commit 5d09aea6f7)
2003-02-18 07:05:02 +00:00
cvs2svn Import User
059c4fd81d This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit c31455779d) 2003-02-18 05:05:16 +00:00
Tim Potter
8f9a17be89 Cleanup of header files for python extensions.
- combine py_foo_proto.h and py_foo.h
 - move #include of Python.h into one place so we can get rid of that
   annoying compiler warning about HAVE_FSTAT being redefined
(This used to be commit 0659351b25)
2003-02-18 05:05:15 +00:00
Jeremy Allison
fb8d1412e1 Ensure we use getgrnam() unless BROKEN_GETGRNAM is defined. I now need
to set this for Tru64.
Jeremy.
(This used to be commit e7c4616c45)
2003-02-18 04:49:31 +00:00
Jeremy Allison
737f82e3b3 Ensure we use getgrnam() unless BROKEN_GETGRNAM is defined. I now need
to set this for Tru64.
Jeremy.
(This used to be commit a211549611)
2003-02-18 04:48:32 +00:00
Gerald Carter
336ae66c5a set the various DsSpooler keys that are linked to PRINTER_INFO_2 fields; CR 985
(This used to be commit 9a4b7a86fd)
2003-02-18 03:43:08 +00:00
Gerald Carter
ac30e445ba set the various DsSpooler keys that are linked to PRINTER_INFO_2 fields; CR 985
(This used to be commit 9efaef4a96)
2003-02-18 03:42:34 +00:00
Martin Pool
097bf66f71 Remove obsolete comment.
(This used to be commit e22465749d)
2003-02-18 02:01:38 +00:00
Martin Pool
7741d66b18 Doxygen janitor. No other changes.
(This used to be commit 735c99dadb)
2003-02-18 01:55:50 +00:00
Martin Pool
05e3070b23 cmd_lsa_lookup_sids: Check return code from string_to_sid; skip SIDs
which are not valid.
(This used to be commit bfb6104521)
2003-02-18 01:35:19 +00:00
Martin Pool
49c3018cbc init_dom_sid2s: Check return code from string_to_sid. Skip tokens
that are not valid SIDs.
(This used to be commit 5a59727278)
2003-02-18 01:30:22 +00:00
Martin Pool
5511347b8d Check return code from string_to_sid.
(This used to be commit fe449328b2)
2003-02-18 01:09:19 +00:00
Martin Pool
335fbbfbc9 add_initial_entry should fail if string_to_sid fails.
(This used to be commit bb095dc28d)
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 bcbc221323)
2003-02-18 00:54:22 +00:00
Martin Pool
54a09519a4 Doxygen janitor and some doc typo fixes.
(This used to be commit 82414706e6)
2003-02-18 00:52:42 +00:00
Martin Pool
5a35b2138e Doxygen janitor. No other changes.
(This used to be commit fa38e7956c)
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 1a723bcda7)
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 24fe55ea6d)
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 90e1d8bdfa)
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 fb3548e508)
2003-02-17 21:19:09 +00:00
Jeremy Allison
3fe0de1fcf Correctly check for inet_addr fail. Patch from gregor.7@osu.edu.
Jeremy.
(This used to be commit 01f6b26945)
2003-02-17 21:19:00 +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 3b905f5a16)
2003-02-17 21:12:21 +00:00
Volker Lendecke
bf89801bd2 cmd_srvsvc.c
(This used to be commit fcfbb3c430)
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 3588ebb35b)
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 9be21976f7)
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 ae9765b84d)
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 4560594a67)
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 0cd4b339b7)
2003-02-17 12:04:09 +00:00
Martin Pool
f203f1643c Typo: /mized/mixed/
(This used to be commit ada36d2fe3)
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 9f9077346b)
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 d85a25e733)
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 8e0d781995)
2003-02-17 04:43:09 +00:00
Tim Potter
96d19c3876 Add KRBCLIENT_OBJ to PYTHON_OBJ list.
(This used to be commit 651be759b3)
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 619af61644)
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 960c53bf95)
2003-02-17 00:58:47 +00:00
Andrew Bartlett
585d50c667 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 c51065e607)
2003-02-17 00:10:37 +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 14b38c004f)
2003-02-17 00:07:38 +00:00
Andrew Bartlett
7f204e07ae Merge from HEAD - allow "" as a domain in the NLTMv2 hash calculations. Fixes
interop with clients not in our domain.

Andrew Bartlett
(This used to be commit 6aa3aba3db)
2003-02-16 22:23:33 +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 ddaa42423b)
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 5040b49867)
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 043b9dff22)
2003-02-15 23:36:18 +00:00
Gerald Carter
940fcdf095 * 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 ffda9e2480)
2003-02-15 23:33:30 +00:00
Alexander Bokovoy
019df92bdf Merge from head CFLAGS/CPPFLAGS and LIBS/LDFLAGS sanitizing
(This used to be commit bf1c82a48f)
2003-02-15 23:07:59 +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 643172ac1a)
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 dc934412b0)
2003-02-15 21:41:01 +00:00
Simo Sorce
07886ac856 fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report
(This used to be commit e257141c9b)
2003-02-15 21:37:15 +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 4a3c6c62d9)
2003-02-15 21:36:28 +00:00
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