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

8342 Commits

Author SHA1 Message Date
Gerald Carter
1d49e9bc71 merges from SAMBA_2_2
(This used to be commit 91929afbb0)
2002-04-16 16:49:08 +00:00
Jean-François Micouleau
7a661ac63c we did not initialise global_myname and global_myworkgroup which lead to
duplicate entries in secrets.tdb and false SID generated.

took me *hours* to understand.

	J.F.
(This used to be commit bfc3a25b77)
2002-04-16 15:49:24 +00:00
Andrew Tridgell
4fd802c444 fixed a problem with the smb_buf() macro on some compilers
(This used to be commit 66d6d4810a)
2002-04-16 13:10:54 +00:00
Andrew Tridgell
f70836df9e ignore a few more files
(This used to be commit 1c92fab405)
2002-04-16 12:27:54 +00:00
Andrew Tridgell
bb8dbb7732 reran configure after adding a test for strnlen()
(This used to be commit 78ead78126)
2002-04-16 12:24:42 +00:00
Andrew Tridgell
b66932e1a5 fixed the handling of STR_TERMINATE
(This used to be commit dbc6b137a8)
2002-04-16 12:07:12 +00:00
Andrew Tridgell
02f84c6bd0 i forgot to commit these parts of the string handling patch earlier. Sorry.
(This used to be commit bac0093a97)
2002-04-16 10:40:23 +00:00
Andrew Tridgell
e7b729e0d9 make sure we don't walk past the end of the current SMB buffer when
pulling a string
this might explain a serious filename corruption bug that Quantum QA spotted
(This used to be commit a877eae24b)
2002-04-16 06:15:28 +00:00
Andrew Tridgell
a95d731fa4 make sure that we leave the tree unused after disconnecting
(This used to be commit e75e4ad7d3)
2002-04-15 23:48:39 +00:00
Tim Potter
37e4471dea Stubs for connect, domain, user, group and alias policy objects.
Wrote samr connect fn.
(This used to be commit f2155aa3f4)
2002-04-15 23:33:09 +00:00
Gerald Carter
4d917cd8f5 merge from SAMBA_2_2
(This used to be commit fedc11cab1)
2002-04-15 13:35:18 +00:00
Andrew Bartlett
6d239fc97f Another patch from jelmer:
Doco for pdbedit and (ugly, but the best we could come up with) fix
for compiling pdbedit on some non-gcc compilers.

Andrew Bartlett
(This used to be commit 80adf1dbb5)
2002-04-15 08:50:36 +00:00
Tim Potter
b84cce809b Skeleton for SAMR module.
(This used to be commit 70bd1a0f94)
2002-04-15 07:29:47 +00:00
Andrew Tridgell
3fca495f8c this fixes the displaying of free disk space for DOS6 clients. Win2000
changes its behaviour based on the negotiated protocol for the
SMBdskattr SMB
(This used to be commit b693917530)
2002-04-15 06:57:17 +00:00
Andrew Tridgell
b5c61023ff better handling of DOS LANMAN2.1 protocol
(This used to be commit 7f923d738b)
2002-04-15 06:56:01 +00:00
Andrew Tridgell
f6929068a1 by using a prompter function we can avoid the bug in the MIT kerberos
libraries with handling blank passwords.
(This used to be commit 59d755ffb5)
2002-04-15 04:55:37 +00:00
Tim Potter
1667a82106 Merge of print server permission handling fixes from HEAD.
Unit tests rock!
(This used to be commit bc673c4204)
2002-04-15 04:07:13 +00:00
Tim Potter
36514b65ee Fixed incorrect debug.
(This used to be commit 3b6df44ddc)
2002-04-15 01:55:57 +00:00
Tim Potter
4a5225bf64 Added hex values as comments for the standard access rights.
(This used to be commit 00511ae2b4)
2002-04-15 01:11:40 +00:00
Tim Potter
9aabbc564f Rename new_policy_hnd_object() to new_spoolss_policy_hnd_object()
(This used to be commit 4bf6a9830a)
2002-04-14 23:42:54 +00:00
Tim Potter
0c01601d31 Explicitly return a list in py_ntstatus_tuple() and py_werror_typle(). Not
sure whether these should really be tuples or lists.

In open_pipe_creds() raise PyExc_RuntimeError exceptions if the pipe
connect function returns an error.
(This used to be commit 45cb1fed49)
2002-04-14 23:39:02 +00:00
Tim Potter
f6da697708 Call PyErr_SetString instead of fprintf to stderr.
Don't clean up talloc and cli_state on close printer.  They will be
destroyed in the handle dealloc function.
(This used to be commit 4114fe5996)
2002-04-14 23:36:01 +00:00
Tim Potter
3540c42bf4 Shutdown cli_state in the dealloc function. This happens automatically
when a handle object falls out of scope.
(This used to be commit 39546dd241)
2002-04-14 23:33:31 +00:00
Tim Potter
8d680f8796 Added enumerate trusted domains.
(This used to be commit 3a11ce31ca)
2002-04-14 12:26:09 +00:00
Volker Lendecke
26152050bb Merge from 2_2.
Volker
(This used to be commit 8973a01f5e)
2002-04-14 12:14:52 +00:00
Tim Potter
d0386372b2 The cli_lsa_lookup_{names,sids} functions were returning useless
information when one or more of the names/sids being queried were not
resolvable.  We now return a list the same length as the parameters passed
instead of an array of just the resolvable names/sids.
(This used to be commit 245468dbab)
2002-04-14 11:21:25 +00:00
Tim Potter
3a139656a3 Added error string for STATUS_SOME_UNMAPPED
(This used to be commit f736e115c0)
2002-04-14 11:13:49 +00:00
Tim Potter
57630be652 Added a status code for lsa_lookup_{sids,names} returning the fact that
only some of the entries could be resolved.
(This used to be commit 0722e71d1e)
2002-04-14 10:50:32 +00:00
Andrew Bartlett
cd58107e6e Extra file for the tdb search code (linked list definition).
Andrew Bartlett
(This used to be commit c331200600)
2002-04-14 09:45:09 +00:00
Andrew Bartlett
07e6ff5fcf Partly based on the work by mimir (Rafal Szczesniak
<mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly
enumerate its trusted domains - by exaimining the keys in the secrets.tdb file.

This patch has been tested with both NT4 and rpcclient/wbinfo, and adds
some extra functionality to talloc and rpc_parse to allow it to deal with
already unicode strings.

Finally, this cleans up some const warnings that were in net_rpc.c by pushing
another dash of const into the rpc client code.

Andrew Bartlett
(This used to be commit 0bdd94cb99)
2002-04-14 09:44:16 +00:00
Tim Potter
06f1577930 New file to hold common prototypes.
(This used to be commit d586289197)
2002-04-14 09:04:45 +00:00
Tim Potter
562393fc85 Moved security descriptor routines into their own file.
(This used to be commit 8e0457f8aa)
2002-04-14 09:04:12 +00:00
Tim Potter
cc8dce0deb Moved function prototypes to py_common_proto.h
(This used to be commit f006bcf8e5)
2002-04-14 09:03:05 +00:00
Tim Potter
f143cb6144 Added copyright.
Added lookup_names() and lookup_sids() functions.
(This used to be commit 2d2c925014)
2002-04-14 09:00:13 +00:00
Andrew Tridgell
a99e810bda it looks like it is possible for a w2k client to send a spnego auth without sending the negotiate - try to cope
(This used to be commit 95278aa41f)
2002-04-14 09:00:05 +00:00
Andrew Tridgell
24065c0bf5 win2000 does not check the permissions on the share directory on
tconx, so win2000 clients don't expect a permissions error in
tconx. We now match this behaviour, by only checking that the
directory exists during tconx and relying on the permissions on other
calls to protect directories
(This used to be commit 4fc4766864)
2002-04-14 06:24:17 +00:00
Andrew Tridgell
a83a0ac9c5 pull_username() is a local function
(This used to be commit fbf154bcfb)
2002-04-14 05:51:13 +00:00
Andrew Tridgell
58c7f38368 hanle the case where the win2000 username is completely different from
the pre-win2000 username
(This used to be commit aa139ba507)
2002-04-14 05:46:23 +00:00
Andrew Tridgell
35bc06d35c modified the ADS backend to accept either the long or short versions
of long usernames (win2000 usernames can be longer than 20 characters)
(This used to be commit 0719e756f6)
2002-04-14 05:14:50 +00:00
Tim Potter
c4e49dee7a Fixed debugs.
(This used to be commit 6d9336f3b9)
2002-04-14 04:58:49 +00:00
Tim Potter
f8b1f9608f Fixed comment.
(This used to be commit 06df6c79ae)
2002-04-14 04:57:02 +00:00
Tim Potter
db32b9ceb7 Made a comment clearer.
(This used to be commit 703e0a6ce2)
2002-04-14 04:55:18 +00:00
Tim Potter
d837a511e8 Generate proto for lsa.
Updated patch.
(This used to be commit 5dbd716b99)
2002-04-14 01:01:39 +00:00
Tim Potter
a160d7bbb1 Starting work on lsa module.
(This used to be commit 5c44397803)
2002-04-14 01:00:49 +00:00
Tim Potter
54bda76922 More open_pipe_creds() refactoring.
(This used to be commit 7f2c814237)
2002-04-14 00:59:50 +00:00
Tim Potter
8d994f432d Moved open_pipe_creds() function to common file.
(This used to be commit 14e4d889a2)
2002-04-14 00:58:16 +00:00
Andrew Bartlett
35e8d461e9 As always, vance looks after the grammer... :-)
(This used to be commit 206f1158bd)
2002-04-13 22:52:28 +00:00
Andrew Tridgell
7897bf7367 two time handling bugfixes
- the pending mtime overrides the current file time in setfileinfo

- a later wtime can override a mtime on setfileinfo

this fixes the date of file copies in win2000
(This used to be commit 79630bb2c0)
2002-04-13 13:30:06 +00:00
Andrew Bartlett
81408df9cf Fix the build on platforms that use our internal popt.
(This used to be commit 3261a210dd)
2002-04-13 11:45:33 +00:00
Andrew Bartlett
d0821f99a6 Patch for arbitary smb.conf paramaters (to make the life of plugin maintainers
sane) from ab.

Attached is his e-mail to the samba-technical list, as it describes it rather
well:

Andrew Bartlett


Subject:
         [PATCH] Parametrical options support for Samba 3.0
    Date:
         Fri, 12 Apr 2002 19:13:13 +0300
   From:
         Alexander Bokovoy <a.bokovoy@sam-solutions.net>
     To:
         samba-technical@samba.org
     CC:
         tridge@samba.org

Greetings!

Attached patch makes possible arbitrary options to be specified in
smb.conf and later queried from VFS modules (and other places)
without problems. Below such options are called 'parametrical options'.

Patch introduces new notation to smb.conf option's language, as discussed
today with Tridgell on @samba-technical:

        TYPE: OPTION = VALUE

Colon sign is important here, it is what distinguishes parametrical
options from ones hardcoded in param/loadparm.c.

TYPE is 'option domain', OPTION is option name itself.

In order to access values of parametrical options, lp_parm_string()
function was implemented:

char *lp_parm_string(const char *servicename, const char *type, const char
*option);

This function accepts service name, type and option name, and returns
value of option or NULL if this option is underfined. Service name can be
NULL, resulting in search in 'global' section only.

If option does not exist in specified service, 'global' section is
scanned. This allows propagation of globally specified options to all
services and later overloading of the option in some services.

Caution: 'TYPE: OPTION' combination is case sensitive.

So far, testparm is able to handle parametrical options, while SWAT
can't. Thus, everyone familiar with SWAT internals is welcomed to add
parametrical options support.
(This used to be commit bfd7cd4355)
2002-04-13 10:52:31 +00:00