1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

9537 Commits

Author SHA1 Message Date
Tim Potter
35d9e886fb Remove todo comment.
(This used to be commit 95831c8266119284264f7f42b08fb4d8e21e9deb)
2002-09-09 01:09:23 +00:00
Tim Potter
bffdffcbb1 Check no extra fields are present when parsing credentials.
(This used to be commit fff081d3440373071d8859b7a7d71cf6489126a4)
2002-09-09 01:06:20 +00:00
Tim Potter
e7561581ff Update patch.
(This used to be commit 31feae9e8f0c9831284cfa85f9b771113549ed2f)
2002-09-08 23:57:40 +00:00
Jelmer Vernooij
e889fc07ac Patch from Kai Krger for the new SAM system
(This used to be commit 771878a2d94009b6eccef5f98d4e782cd85c291e)
2002-09-08 15:25:22 +00:00
Jelmer Vernooij
8a5abe4dbe Patch from Stefan (metze) Metzmacher with more updates for the SAM subsystem
(This used to be commit 56cb03bfc68727384df46bde6df03950f7cdfcf9)
2002-09-08 14:58:23 +00:00
Simo Sorce
79f54d28f8 change parametric option name to vfs_recycle_bin it is more sane and do not pollute standard options namespace too much
changed also the mode options to be indipendente boolean values, make it easier to understand how to configure them

eg:
vfs_recycle_bin:keeptree=yes
vfs_recycle_bin:versions=yes
(This used to be commit d904d50d3945f5f6a80b59850a82f3e37863c125)
2002-09-08 03:55:37 +00:00
Simo Sorce
1e7b61514c forgot to commit configure with configure.in
(This used to be commit db883ae1e659496696c17f2901634cada5e4aa13)
2002-09-08 00:36:22 +00:00
Jelmer Vernooij
397ef9004e "disable charset" -> "display charset". oops
(This used to be commit 67543ea43d6c76f10f6757ae35a29044ce0020c5)
2002-09-07 19:06:37 +00:00
Gerald Carter
2968f8a6be merge of printer change notify fix from APP_HEAD
(This used to be commit 6a53a9cb7c56927423dea125c65d66605fae566f)
2002-09-07 17:08:59 +00:00
Andrew Bartlett
8352336ad0 This is the 'main' inclue for for winbind clients - all clients should include
only this file, and not any others.  It includes the function prototypes.
(Forgot to commit with earlier patch)

Andrew Bartlett
(This used to be commit 3ec3861445e7da1347c3b5ba180b33441f59640c)
2002-09-07 09:25:36 +00:00
Andrew Bartlett
9378cbb019 Don't leak file desciptors in this (impossible?) error case.
(This used to be commit b440418f13b840860be42690bf475c1ee3cb3647)
2002-09-07 06:04:28 +00:00
Andrew Bartlett
885f4f9379 Winbind client-side cleanups.
The global winbind file descriptor can cause havoc in some situations -
particulary when it becomes 0, 1 or 2.  This patch (based on some very nice
work by Hannes Schmidt <mail@schmidt-net.via.t-online.de>) starts to recitfy
the problem by ensuring that the close-on-exec flag is set, and that we move
above 3 in the file descriptor table.

I've also decided that the PAM module can close it's pipe handle on every
request - this isn't performance-critical code.

The next step is to do the same for nss_winbind.  (But things like getent()
might get in our way there).

This also cleans up some function prototypes, puts them in just one place.

Andrew Bartlett
(This used to be commit 442eb39657b98f67cd229ed3110b63aae8bf4e3c)
2002-09-07 05:41:23 +00:00
Simo Sorce
ec4f2af04a configure.in:
reflect the new example/VFS/ directory organization

lib/substitue.c:
added helper functions needed by recycle bin
(This used to be commit 29b4b9a2b5a0347d227b1a30e3f34bf40afa6de4)
2002-09-07 04:08:03 +00:00
Simo Sorce
27cc26cec8 recycle.c:
merged in modifications made my differnt people, cleaned up things, yet some work todo
the code works but there are still some cases to be handled properly

Makefile.in:
this one seem much simpler and effective than the previous hack with file inclusion
it should also be more portable
we still need to find a solution to support multiple platforms or go back to libtool
(This used to be commit e9f4bc77f84eeece82dea25f9c693cfb1d0a8464)
2002-09-07 04:05:42 +00:00
Andrew Bartlett
df4e6c9bcc As per the 'OK' at CIFS2002, only use the readline headers (and this crasy
#ifdef mess...) in readline.c, we don't need or use them in the rest of Samba.

(This OK was of course conditional on 'if you break it, you better fix it...')

Andrew Bartlett
(This used to be commit 55ee289f587f107fa03c5f889491fdaab101df2d)
2002-09-06 23:10:28 +00:00
Andrew Bartlett
7a76d0e854 Seems I missed commiting this when I added the rest of metze's ADS patch.
Oh well, here it is...

Andrew Bartlett
(This used to be commit 7c2a667640b01a0f19ddc3515c5ca7ac43d26e25)
2002-09-06 13:46:36 +00:00
Simo Sorce
d0cef25c27 the current block module is completely broken, jelmer will commit a new one later.
simo
(This used to be commit 830f9910bb77562aa2dbef2f479c01493928692d)
2002-09-06 13:39:46 +00:00
Simo Sorce
afc1a220b7 move everything to flat VFS/ directory
(This used to be commit d383c309d4a259fb28d7541777a8b3b53cca23bf)
2002-09-06 13:37:40 +00:00
Andrew Bartlett
789d51b42c This is the 'easy' parts of the trusted domains patch n+3 patch from
Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl>

It includes a conversion of make_user_info*() to NTSTATUS and some minor
changes to other files.

It also picks up on a nasty segfault that can occour in some security=domain
cases.

Andrew Bartlett
(This used to be commit d1e1fc3e4bf72717b3593685f0ea5750d676952a)
2002-09-06 13:37:11 +00:00
Andrew Bartlett
94d6c0e895 Fix some missing ; on the end of our SAM_ASSERT()...
(This used to be commit 4d642e1fa4ed454a421a9f219a8cdecddb57fd31)
2002-09-06 13:21:54 +00:00
Andrew Bartlett
29e092d4e0 Get our consts back in line with current norms - only for pointer protection.
Debate about extending this policy welcomed on samba-technical.

Andrew Bartlett
(This used to be commit 5f59abb410110c22b6fffd7502443b5259d12e5a)
2002-09-06 13:17:55 +00:00
Andrew Bartlett
337668fd88 Make it possible to actually build these modules - process the Makefile.in at
the end of configure.
(This used to be commit 6953db6a98432cfbb946dd2d3cbe64e7dee0b71d)
2002-09-06 13:05:04 +00:00
Andrew Bartlett
6c8e4faba1 Updates to sam_skel from metze, add sam/group.c and add a DEBUG() to the
SAM_ASSERT if we are not going to crash.
(This used to be commit f91fcb166107e45ffb3de95a3da65c79992341eb)
2002-09-06 13:00:37 +00:00
Andrew Bartlett
68defac58d This commit includes part of the patch from metze posted to the list, and a few
of my own changes.

In particular:  I've added a SAM_ASSERT macro.  This expands to either
SMB_ASSERT() (which should help us track down bugs) or a return of
NT_STATUS_CHECK_FAIL.

Metze's changes are mostly to bring the code into line with current discussions
on things like adding users/groups, flags etc.

I've adjusted a fair bit of the 'const' in the SAM stuff.  Const is currently
used only for pointers, not for local variables or non-pointer paramters.  The
benifits and reasons for extending this further need discussion on
samba-technical.

Also, some of the 'context' paramters should not be const, to allow backend
modules to do fancy caching etc in them.

Andrew Bartlett
(This used to be commit e13bc432628a6131be082caedc75cd8a3d206e5a)
2002-09-06 12:57:12 +00:00
Andrew Bartlett
2d88135714 patch from metze: add a 'vfs' debug class
(This used to be commit 601b56e04fddd9ddfb9be5b0a625d6d279df7f4c)
2002-09-06 11:58:18 +00:00
Andrew Bartlett
a92724025a Revert accidental commit - I'll need to do a fair bit more testing before I
commit changes to NTLMSSP flags.
(This used to be commit d200770796d871b3994a06fab45624068fdc5682)
2002-09-06 11:49:16 +00:00
Andrew Bartlett
eec38ee3bb Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de>
to extend the ADS_STATUS system to include NTSTATUS, and to provide a better
general infrustructure for his sam_ads work.

I've also added some extra failure mode DEBUG()s to parts of the code.

NOTE:  The ADS_ERR_OK() macro is rather sensitive to braketing issues - without
the final set of brakets, the test is essentially inverted - causing some
intersting 'error = success' messages...

Andrew Bartlett
(This used to be commit 5b9a7ab901bc311f3ad08462a8a68d133c34a8b4)
2002-09-06 11:46:59 +00:00
Andrew Bartlett
c4d1f9a1e8 Oops...
(This used to be commit 9a6f932da1c85a331a8427f055b5fa798dbda89b)
2002-09-06 10:43:52 +00:00
Andrew Bartlett
4aad4d7c73 Add some DEBUG()s to some libads failure modes.
(This used to be commit ad3c8da13b9d510f78fd56364cd0987de88a9b9f)
2002-09-06 10:39:34 +00:00
Andrew Bartlett
e4eed6e8f4 One less user of Get_Pwnam_modify()...
Andrew Bartlett
(This used to be commit 06b8a6fef466e006724bc49165fe936cf8fcfbfa)
2002-09-06 10:38:26 +00:00
Andrew Bartlett
69b9cbf327 Detect and use syslog.h or sys/syslog.h corretly. Fixes lack of prototype for
syslog() since Paul Green's POSIX patch.
(This used to be commit d3b29b0b2d2ffd5c050900ff8cae441b91f95526)
2002-09-06 10:00:24 +00:00
Tim Potter
c9101c3b01 Initial version of printerdata_ex browsing.
(This used to be commit c201a61a52ffbaf1b1b70e25e0ef2b29a89f921c)
2002-09-06 07:44:21 +00:00
Tim Potter
a2327b8485 Move printerdata dictionary object into it's own file.
(This used to be commit c211d2deca1019d3ef9bd08f5a01e76ede2d0191)
2002-09-06 07:34:57 +00:00
Tim Potter
e411dc9687 Decode list of dependent files in printer driver info3 and info6.
It's a null terminated list of null terminated unicode strings.  What
a mess!
(This used to be commit aae48211ff4f22e0c2e2fe57c370f465df4332bc)
2002-09-06 07:01:40 +00:00
Tim Potter
22b75d5c81 level keys are inserted by conv routines.
(This used to be commit b5068bb9fe28cfdd7a00dbc50196eb60e3a46af1)
2002-09-06 06:59:40 +00:00
Tim Potter
2ec89150f8 Display debug data we are marshalling/unmarshalling a UNISTR in a
similar format to UNISTR2.
(This used to be commit 2d227bdce26674affad87ad6d118e77604fb210a)
2002-09-06 06:13:16 +00:00
Tim Potter
c9e550f765 cli_spoolss_enumprinterdrivers:
Return WERR_UNKNOWN_LEVEL if we can't decode the returned buffer.
(This used to be commit 0379a32d825e036c7f0dcabef46547cd678a2a1d)
2002-09-06 01:12:52 +00:00
Andrew Bartlett
ce2ac33b73 Move the fancy NT_STATUS macros to a new file, so we can include them earlier
in includes.h

Andrew Bartlett
(This used to be commit ed184ed1905b49956528b6835f48a69ba3c1a045)
2002-09-05 15:47:22 +00:00
Jeremy Allison
4cf5238599 Revert the "reverse" change to rpc_server/srv_spoolss_nt.c, simply
add then entries to the end of the list in printing/notify.c using
DLIST_ADD_END.
Jeremy.
(This used to be commit 047d6a05fb60172a2607bb7d7d03dda5403c61fa)
2002-09-05 12:55:56 +00:00
Volker Lendecke
4af9c9ce3b Fixed a little, long standing bug: smbclient -M <name> should resolve
name#03, not name#20.

Volker
(This used to be commit 99017e887e4189ac7f6e3b7df08f028dc155191e)
2002-09-05 11:40:06 +00:00
Tim Potter
9f43ccb98e Delivery notify messages over the back channel in *reverse* order in
which they are sent in the message.  This is because a DLIST_ADD is
used by the message sender which results in the first (post!) message
being at the end of the list.  Notify messages must be delivered in
the order the events occur in otherwise the port monitor gets
confused.
(This used to be commit d41ff1f1a6cfad71ef35698d45e9fb97d9100898)
2002-09-05 06:49:08 +00:00
Jeremy Allison
8ac6e260b9 Remove donotify as notifies are cheap now.
Jeremy.
(This used to be commit 78585de5811d10bcca156e296c7dd51eabe5d626)
2002-09-05 05:26:29 +00:00
Jeremy Allison
19a7d460e4 We shouldn't add printing flag here.
Jeremy.
(This used to be commit f00102ba77d752bdf714fa83ac7fdc679e8d7f17)
2002-09-05 04:33:52 +00:00
Tim Potter
36cab08d37 Send any queued up print notify messages in exit_server() so they
don't get lost if the client exits before timeout_processing()
has a chance to run.
(This used to be commit d7dde74aae64e9e142b80b7e3ba1bd69cec149b0)
2002-09-05 04:33:07 +00:00
Tim Potter
7b9439363e A netshareenum reply always contains an enum_hnd. win2k returns zero
total entries on an error whereas nt4 must send uninitialised data so
we didn't catch this one before.
(This used to be commit 88653130bc1e380b7d8dc6c62492f3bbc6f1c707)
2002-09-05 04:25:21 +00:00
Tim Potter
481c0db0ac Roussed on Jeremy for not putting in enough debugs in the new print
notify stuff.  (-:
(This used to be commit 87c156704f5d8913cf7bf3134ec5ba6403d36cca)
2002-09-05 04:22:16 +00:00
Andrew Tridgell
58b5b6f403 initial mem_ctx to NULL
patch from metze
(This used to be commit a4351a3923fd87e1c54119d997b673fcac34601b)
2002-09-05 03:06:26 +00:00
Tim Potter
1974c5d92e The new popt_common_debug code obviates the need to muck around with
AllowDebugChange, saving the debuglevel across lp_load() calls etc.
(This used to be commit 561204905b78323fd0a03cc7ec5c9dbb2295bd5b)
2002-09-05 02:00:14 +00:00
Jeremy Allison
2658e4ee23 Added better error code on out of space. Removed total jobs check - not
applicable any more.
Jeremy.
(This used to be commit 8828e2ea3c668aab6cda1b4be9a7e4ce1c23ca81)
2002-09-04 23:40:49 +00:00
Andrew Bartlett
cc5088b5f4 Only cache the user list on the SAMR handle for a particular
acb_mask/all_machines flag combination.  The avoids a bug where we were listing
users in the 'trusting domains' dialog in usrmgr.

We might also need to invalidate the cache for some other SAMR actions.

Andrew Bartlett
(This used to be commit 65047aee7fefefaecded9772184a54c046ab1784)
2002-09-04 22:02:53 +00:00