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

8678 Commits

Author SHA1 Message Date
Simo Sorce
66f1182adc typo, sorry
(This used to be commit d222bc8c4b620095a21ba327940d4750d5dee753)
2002-05-21 13:49:08 +00:00
Simo Sorce
ab59d1c21a uhh, forgot to commit the DBGC_WINBIND definition :-)
(This used to be commit efb119fb88a511e026239773422242fff636ae13)
2002-05-21 08:06:44 +00:00
Simo Sorce
e00dbecb88 debug classized
(This used to be commit ae5d24873ad0fb3df970cc9912e18e6a5067ae2d)
2002-05-21 07:53:28 +00:00
Tim Potter
8a35fba95b A tdb module based on some tips from Mike Noriega. This version supports
locking and tdb traversal using python callbacks.
(This used to be commit f3530fd6180bb78a58a3f41ac1389c9f0ba7b183)
2002-05-21 07:43:35 +00:00
Jeremy Allison
27960c8f4f Stop smbd looping when hide unreadable is true and .. is unreadable.
Jeremy.
(This used to be commit fda7a11b093315a77ca1199119b5421a029ee883)
2002-05-20 23:33:46 +00:00
Jeremy Allison
27c194163d Merge from 2.2.
Jeremy.
(This used to be commit 174df5d914b149e52bf260e6502f2436c2720958)
2002-05-20 19:21:06 +00:00
Gerald Carter
34278af77a merge from SAMBA_2_2
(This used to be commit 2424578c298ea11f67415bcfe2928353cd95819b)
2002-05-20 16:55:00 +00:00
Tim Potter
641d6dc79e Remove level and name fields from dictionary copy in py_to_FORM()
(This used to be commit ac15442579848f145dbdce6d51207321c4150c25)
2002-05-20 08:09:19 +00:00
Tim Potter
03a8391787 py_to_DRIVER_INFO_3: remove level key on copy of dictionary before calling
to_struct().
(This used to be commit 274679d8ce33aaf664ffaaa6834d506f7b196fc6)
2002-05-20 08:07:49 +00:00
Tim Potter
be92d4ac55 Decode info level 3 for getprinterdriver.
Error checking for undecoded info levels.
(This used to be commit 841b6cf63c1f22dcb8fa07796a44e20555fe5b59)
2002-05-20 08:05:27 +00:00
Tim Potter
1aa06209a1 When converting from a dictionary to a Samba structure, check for any
additional keys that may have been added and return False if so.
(This used to be commit 96ccb2beb1d45f8122ff03fc2f7727bf065adbf6)
2002-05-20 08:04:02 +00:00
Tim Potter
d62adde88a Set level key in driver info structures.
(This used to be commit 0caf7610dcf698d2c649e42f0630de4337cfcea2)
2002-05-20 02:55:35 +00:00
Tim Potter
c1334b143b OK that last commit was incorrect - this call is parsed properly. I only
imagined it wasn't!
(This used to be commit bbad6c6678c89a33fb233091f5965ccd1aa589f6)
2002-05-20 01:31:51 +00:00
Tim Potter
622ed701a5 There's probably a pointer to a buffer at the end of a enumprinterdrivers()
rpc call which we currently don't parse - just added a comment about it for
the moment as not parsing it is harmless.
(This used to be commit 2429c4cc796576aa2d816a14b10fdd932b672a02)
2002-05-20 01:00:56 +00:00
Tim Potter
077566a200 No need to pass a fstring in make_spoolss_q_enumprinters()
(This used to be commit 1fb8e2b3a07fdc0bb302f02a451ed32a275f0c10)
2002-05-20 00:55:19 +00:00
Tim Potter
60f2f1999d Spelling fix.
(This used to be commit 37f1cd013da073ca23fd9b16ee8cfbf9a3e6cbd9)
2002-05-19 12:07:21 +00:00
Tim Potter
b8618865df Patch to only set SV_TYPE_PRINTQ_SERVER in default_server_announce if a
print share is exported.  Needs some more testing.
(This used to be commit 92b36482fd6aa5103c30dad40fe799c07dd2d8d7)
2002-05-19 12:06:45 +00:00
Tim Potter
c523cce510 Fixed compiler warning.
(This used to be commit 793d9306e29ddd23e3f52736b5cd558b5d058611)
2002-05-19 11:21:28 +00:00
Richard Sharpe
4f8b957f40 A small change to print out the error message only if we could not check the
secrets ...
(This used to be commit 56eea2623a8a8f2a5a0311cda6d0282d0037a3cc)
2002-05-19 07:08:32 +00:00
Andrew Bartlett
80b22f6433 Keep the compiler happy
(This used to be commit 84ea2a434b510ed49838a04a4b30bd2fc9ec5673)
2002-05-19 02:28:14 +00:00
Simo Sorce
2a02a76913 so here it is the code to introduce seriously debugggging classes.
this is a first step only passdb stuff has beein "classized".

 - so what can you do?
   set debug level to:  1 poasdb:10
   that will make all the code run at debug level 1 except the code in
   passdb/* files that will run at level 10
   TODO: fix the man page

 - also smbcontrol has this nice feature so smbcontrol smbd debug 3 passdb:5
   will set every smbd to have a default log level of 3 while passdb stuff
   will be at level 5

   and so no..

  minor cosmetic fix to pdbedit is there too
(This used to be commit be5c3b3f5781ddc002ffcc98df04ab024dcef4ca)
2002-05-18 15:09:21 +00:00
Andrew Bartlett
f9d2db36f3 Remove unused files.
The size of samba going down for once :-)

Andrew Bartlett
(This used to be commit 00ef4aad88f4ba9f2e242578c37933eac001c351)
2002-05-18 13:50:59 +00:00
Andrew Bartlett
ac03889168 Move client_receive_smb to clientgen.c as a static, as proposed by Elrond.
(only function that used it was unused, and this helps bring TNG and HEAD
closer)

Its also cleaner.

Andrew Bartlett
(This used to be commit 78f47c83332a6408a718a3dee45645935638b364)
2002-05-18 13:19:38 +00:00
Andrew Bartlett
bc8f74f988 Oops, I missed commiting this earlier.
The idea is that pdb_add_sam_account() should have a non-const SAM_ACCOUNT,
and update some of the the properties generated during the add.

Andrew Bartlett
(This used to be commit b014d9ae4bc38d83d474888b73d350a62704341f)
2002-05-18 11:38:50 +00:00
Andrew Bartlett
55ec09ad95 Remove const from some functions to match the changed prototype in a
previous commit, and remove some unsued variables.

Main change:  Make sure to fill in the username when making a non-unix
account from smbpasswd.
(This used to be commit 7019486eacb72ca44c42ce620b8696bb29f12292)
2002-05-18 09:32:59 +00:00
Andrew Bartlett
d4dac178df Passdb:
Kill off the silly code that attempts to do NT -> Unix username mapping.
This is done well before here, no need to repeat it.

Add some small fixes and extra debugs, trying to track down current build
farm failures.

pdb_unix:

When 'updating' a pdb_unix account, instead add it to the default passdb.
This means that you don't need to specify '-a' to smbpasswd any more when
messing with an existing unix user, the account is simply 'upgraded'.

The idea here is that these accounts are just as 'real' as any other, they
just don't have the extra attributes an smbpasswd file does.

I'm open for debate on the pdb_unix issue, and will remove it if given
good reason.  (without this, an attempt to add an account already in
pdb_unix to smbpasswd would fail, as it would fail to update pdb_unix).

rpc_server/srv_netlog_nt.c

Change a couple of things around, so as to show the client workstation etc.

WRONG_PASSWORD is certainly not the right default error.  Try ACCESS_DENIED
for now.

Andrew Bartlett
(This used to be commit d78b74b338df9accd9ad84c56a49fa4f787425e2)
2002-05-18 09:06:23 +00:00
Andrew Bartlett
27b9283aff Include the extra #define for the last set of smbpasswd mods.
(This used to be commit bf82ac14c826a765b33d368e4cb62c7fb3cd3c4f)
2002-05-18 08:59:04 +00:00
Andrew Bartlett
53ec535766 Make smbpasswd at least slightly sane. This kills off some of the
silly global variables, and makes it come closer to a clean compile.

I'm still not convinced what was wrong with the previous code, at least
it didn't cause a gush of warnings...

In any case, we now don't need to spegetti code gotos etc.

This should really be redone with popt.

Andrew Bartlett
(This used to be commit d9330f10447f199a5a73803579ce3b1253f4d02c)
2002-05-18 08:57:25 +00:00
Andrew Bartlett
3346a76674 As per rsharpe's request, require only a Masters in Astrophysics to
correctly configure winbind.

(Next job:  Fill in the 'error_msg' field with somthing useful)
(This used to be commit 49ee2a25c131641887cbc438a6336652f042cfb0)
2002-05-18 06:42:50 +00:00
Andrew Bartlett
58e1fe62cc A few things in this commit:
cleanup some of the code in net_rpc_join re const warnings and
fstrings.

Passdb:

Make the %u and %U substituions in passdb work.
This is done by declaring these paramters to be 'const' and doing
the substitution manually.  I'm told this is us going full circle,
but I can't really see a better way.

Finally these things actually seem to work properly...

Make the lanman code use the pdb's recorded values for homedir etc
rather than the values from lp_*()

Add code to set the plaintext password in the passdb, where it can
decide how to store/set it.  For use with a future 'ldap password
change' option, or somthing like that...

Add pdb_unix, so as to remove the 'not in passdb' special cases from the
local_lookup_*() code.  Quite small, as it uses the new 'struct passwd ->
SAM_ACCOUNT' code that is now in just one place.  (also used by pdb_smbpasswd)

Other:
Fix up the adding of [homes] at session setup time to actually pass
the right string, that is the unix homedir, not the UNC path.

Fix up [homes] so that for winbind users is picks the correct name.
(bad interactions with the default domain code previously)

Change the rpc_server/srv_lsa_nt.c code to match NT when for the
SATUS_NONE_MAPPED reply:  This was only being triggered on
no queries, now it is on the 'no mappings' (ie all mappings failed).
Checked against Win2k.

Policy Question:  Should SID -> unix_user.234/unix_group.364 be
considered a mapping or not?  Currently it isn't.

Andrew Bartlett
(This used to be commit c28668068b5a3b3cf3c4317e5fb32ec9957f3e34)
2002-05-18 05:52:52 +00:00
Jim McDonough
27ecfceae1 Don't forget the semicolon, you fool!
(This used to be commit 1c9387330f776b9b96714f9c9c62087bbd32f7b6)
2002-05-17 14:55:50 +00:00
Andrew Bartlett
0d26e9f69c Make --with-ldapsam 'go away'. This is now a standard, stable, feature
and there is no real reason for it to depend on more than the abilty
to compile the code.
(This used to be commit 64aaec137e39595e6e61b55eb525615683a1393c)
2002-05-17 14:51:55 +00:00
Jim McDonough
c7523c5751 Fix usage of va_list passed as an arg. Use __va_copy before using it
when it exists.
(This used to be commit 85ab07bdc1b2ce7b2c1b8197fad45124b1460dca)
2002-05-17 14:51:22 +00:00
Andrew Bartlett
31cda568c0 This is meant to be accessed via the helper fn, not directly.
(This used to be commit b84882a628b3f2f0890322f25694c1932aa3e5ec)
2002-05-17 14:35:54 +00:00
Andrew Bartlett
caf6252367 Make non-static for some later work (pushing the info3 across the winbind
pipe for smbd to decode), and fix up the debug.  (At least I assume it is
wrong, can an expert care to comment?)
(This used to be commit e5b4331ffa99d769b062053d6afc4772355fa5b2)
2002-05-17 14:27:42 +00:00
Andrew Bartlett
c6926d75dd Add a touch of const
(This used to be commit 3e93b216ddba14592a0193664c5d6bcbef898f1a)
2002-05-17 14:26:20 +00:00
Andrew Bartlett
6d15066afc Check paramters for NULL.
(This used to be commit 078e81530e9bc4e5f0b8e18aff0488386bce29a5)
2002-05-17 14:23:43 +00:00
Andrew Bartlett
e4672862fd Make Get_Pwnam use getpwnam_alloc() in an attempt to make it segfault rather
than allow silent reuse of stale static buffer.

Next step is to make this fn return that allocated buffer.
(This used to be commit e1daf816f3d809d288313fe2db98b5a731c93a79)
2002-05-17 14:19:36 +00:00
Andrew Bartlett
993f75f263 indent
(This used to be commit 173aac4a810782dddc85494c328a6917cb3fe0c2)
2002-05-17 14:15:47 +00:00
Andrew Bartlett
3fe27b7f9d A few more trusted domains updates from mimir.
I think we may still need to look at our server enumeration code, but
other than that, its much better in the tree than out.

Andrew Bartlett
(This used to be commit d57a1b4629d12a0374cc6d74dfc6f5d4793fcef8)
2002-05-17 13:49:01 +00:00
Jim McDonough
f627be5ec2 Add an item about the __va_copy macro to prevent SEGV's on 390 and PPC Linux.
(This used to be commit 443ba282be79e2b7259950fffbd7fe9bb4cabf8c)
2002-05-17 13:13:15 +00:00
Andrew Bartlett
eed5094264 This removes --with-ssl from Samba.
This option was badly maintained, useless and confused our users and
distirbutors.  (its SSL, therfore it must be good...)

No windows client uses this protocol without help from an SSL tunnel.

I can't see any reason why setting up a unix-side SSL wrapper would
be any more difficult than the > 10 config options this mess added
to samba in any case.

On the Samba client end, I think the LIBSMB_PROG hack should be
sufficient to start stunnel on the unix side.  We might extend this
to take %i and %p (IP and port) if there is demand.

Andrew Bartlett
(This used to be commit b04561d3fd3ee732877790fb4193b20ad72a75f8)
2002-05-17 12:42:39 +00:00
Andrew Bartlett
a64932dfc0 Update the doco for the LDAP options in smb.conf, in line with code changes
a little while back.  We might have to look at the migration path for these
options.  (or as --with-ldap has always been 'experimental' we could ignore
it...)

Andrew Bartlett
(This used to be commit 35e909b33870f6c5d8af9398d6f9f816e83e2ca4)
2002-05-17 11:10:34 +00:00
Andrew Bartlett
df27d48e00 more dl* -> sys_dl* for sco
(This used to be commit 92eead1a0a93a6191fbd7b413f0736eb1a716b8e)
2002-05-17 10:54:26 +00:00
Martin Pool
3ffa277186 Makes winbindd_proto handling consistent with the other header files,
so that at least "make clean; make all" doesn't fail.

It's still not safe for parallel builds, i.e. "make clean; make -j3
all" will probably crash, but "make clean; make proto && make -j3 all"
seems OK.  I'm not sure if it is possible to solve that and still
support ancient non-GNU versions of Make.
(This used to be commit 4d202c19997d4219e7f607a725123d5606b9bd8a)
2002-05-17 06:59:04 +00:00
Andrew Bartlett
abdc476df3 Get the sco boxes compiling again - use the sys_ intefaces for all the dl*
funcitons.
(This used to be commit c37c1e39253d9d21f8ab38ab8d24f7e787008596)
2002-05-17 06:15:06 +00:00
Tim Potter
7a6a5bc6d7 NT sends the server name prepended with \\ for a enumerate printers RPC
call so we probably should as well.
(This used to be commit 39c0218e5b4132e60401c2fc25fcbc88be94f87f)
2002-05-17 05:33:48 +00:00
Richard Sharpe
6ee4366093 Changes to allow head to translate NMB flags ...
(This used to be commit c986a19cde0dfa96b512eb24d873203981e68c48)
2002-05-17 03:37:37 +00:00
Tim Potter
4f783edcf3 Use get_level_value() utility fn.
Cleaned up some local variable naming.
(This used to be commit d4c7a85c2b5c45f1cc3273230d80a1d5923cd848)
2002-05-17 02:39:07 +00:00
Tim Potter
296583a5e1 Add level field when converting FORM_1 to dict.
More error checking when converting from dict to FORM_1.
(This used to be commit 608b9ab29dca820d29a40a2c5df86c1ff7e751a9)
2002-05-17 02:34:49 +00:00