1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

8957 Commits

Author SHA1 Message Date
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb)
2002-07-15 10:35:28 +00:00
cvs2svn Import User
ec167dc9cc This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit b8d39651fb) 2002-07-14 22:15:21 +00:00
Andrew Tridgell
13157d1494 this is a trick to work around the fact that posix does not supply
a getgr*() function that lists groups without numerating all the
group members. Instead of definiing a new nss method (which might
cause problems) I added an environment variable WINBIND_GETGRLST
that tells winbind not to fill in the group members in a gergrent()
request. This can speed up group listing by a factor of 20 or more
(on my test system with 50000 groups it reduces the time from an hour
to 2 minutes)
(This used to be commit e3f73256d3)
2002-07-14 22:15:20 +00:00
Andrew Bartlett
3d1b9bfb29 Show the account flags in the 'verbose' listing of pdbedit.
Andrew Bartlett
(This used to be commit b5ec92d7a2)
2002-07-14 08:38:09 +00:00
Andrew Bartlett
e7c9c29904 Apply patch from "Kai Krueger" <kai@kruegernetz.de> to make it easier to
determine what access masks should be applied to various SAMR calls.

Andrew Bartlett
(This used to be commit dbf28f992b)
2002-07-14 08:37:31 +00:00
Andrew Bartlett
a02a80d7d3 Fix up a botched prevoius commit.
The idea here is to allow invalid LM passwords in otherwise valid accounts.

This happens when we create an account without a password, for example.
Previously we would stop at the LM password, and not read things like the
account flags correctly.  Now we process the record, and just set the password
to NULL.

(Note, 'no password for access' is decided only on the basis of the Account
Control bits, not on the 'NULL' value of the password feild.).

Andrew Bartlett
(This used to be commit c590e0c970)
2002-07-14 04:51:57 +00:00
Andrew Tridgell
3fbf057d78 removed some meaningless const casts that were causing thousands of
warnings (literally!) for the irix compiler
(This used to be commit 35b6b46bc6)
2002-07-14 04:11:21 +00:00
Andrew Tridgell
f5880f3fe8 move opt_machine_pass to keep some compilers happy
(This used to be commit 39e11ef5b1)
2002-07-14 03:49:15 +00:00
Andrew Bartlett
5be0f34cc7 Move nttrans.c into the NTSTATUS age.
This could do with another eye looking over it, but it seems to work.

Andrew Bartlett
(This used to be commit e6746db60d)
2002-07-14 01:23:46 +00:00
Andrew Tridgell
db34ff6714 added useful 'net rpc info' command
this also gives a way to distinguish a 'native mode' server from a
non-native server. This call will fail for a native mode server.
(This used to be commit a7663428e0)
2002-07-13 15:14:39 +00:00
Andrew Tridgell
351831683d added --machine-pass option to net. This allows you to authenticate as
the current machine account and password. This is useful both for
diagnostics and domain leave.
(This used to be commit 73b246981f)
2002-07-13 11:42:53 +00:00
Andrew Bartlett
d7bdcee189 make this a ZERO_STRUCTP for consitancy with the rest of Samba.
(This used to be commit 587a3d91b7)
2002-07-13 09:18:55 +00:00
Andrew Bartlett
04538bfb6c Make smbmnt a standalone program from a linker point of view. Hopefully this
will make it easier to prove this package correct from an audit point of view.

smbumount to follow, but it uses pstrcpy() so I'll need to decide what to do
with that.

Andrew Bartlett
(This used to be commit 62c56f9724)
2002-07-13 09:14:40 +00:00
Andrew Bartlett
35150ef8b5 I just noticed that I never added my copyright when I messed with this
previously.  Fix that.

Andrew Bartlett
(This used to be commit c552910477)
2002-07-13 09:11:20 +00:00
Andrew Bartlett
6b903424fe Make smbpasswd behave like all the other backends, where a NULL or invalid
LM password isn't anything special.  All the users check the ACB nowadays,
and this allows us to correctly return flags set via usermgr.

Andrew Bartlett
(This used to be commit 89eb765d39)
2002-07-13 09:10:16 +00:00
Andrew Bartlett
224e73803b This makes smbcacls a bit easier to use and debug.
Allow connection in the form of //server/share instead of just \\server\share
and show the reason for failure from cli_full_connection().

Andrew Bartlett
(This used to be commit 4687fac69d)
2002-07-13 09:03:41 +00:00
Andrew Tridgell
f5b6ef1b65 fix directory listing on win9x.
it turns out this is tricky to get right for both win9x and w2k with
and without unicode. This patch seems to do the trick.
(This used to be commit 01ebe5fff2)
2002-07-13 08:37:06 +00:00
Richard Sharpe
3faee01c7c Some fix ups but committing so Andrew can look at the problem I have.
(This used to be commit 146ba3eb49)
2002-07-13 07:18:43 +00:00
Richard Sharpe
92c597a9b0 Fix up the include file that had problems as well.
(This used to be commit 753df0b897)
2002-07-13 05:43:34 +00:00
Richard Sharpe
5c682b7337 Add these two files I forgot.
(This used to be commit 5706e6af16)
2002-07-13 05:13:02 +00:00
Richard Sharpe
1e8952c684 Fix some multibyte problems that I forgot about.
(This used to be commit 481a70f4f0)
2002-07-13 05:11:58 +00:00
Andrew Tridgell
a0489b36c1 fixed a stdin bug in XFILE that prevented 'print -' from working
(This used to be commit e66e354421)
2002-07-13 04:28:01 +00:00
Andrew Tridgell
ebfff1a475 - fixed a crash bug for 'print -'
- removed an unused variable
(This used to be commit 66af95716d)
2002-07-13 03:51:28 +00:00
Jeremy Allison
e40abc248f The changes in make_sec_desc to make us match W2K broke the marshalling/unmarshalling of
security descriptors. We need to calculate the maximum offset and set the offset
back after reading/writing every field in the SEC_DESC.
This was *nasty* to find....
Jeremy.
(This used to be commit 175d43980e)
2002-07-12 21:09:24 +00:00
Jeremy Allison
8ba2c4e55d We must ZERO_STRUCT before using the buffer in copy_unistr2.
Fixes addprinterdriverex.
Jeremy.
(This used to be commit d3c73e5970)
2002-07-12 18:10:24 +00:00
Andrew Tridgell
695b346ab5 fix setting machine passwords in the case where a user account of the
same name as the machine name exists. (we ended up setting the users
password, not the machines password!)
(This used to be commit fe1e6233c6)
2002-07-12 02:28:27 +00:00
Richard Sharpe
669358c05f Commit Tom Jansen's changes to head.
(This used to be commit d3fdce07ab)
2002-07-11 23:33:00 +00:00
Tim Potter
46deff915e Regenerated.
(This used to be commit 7ead9602ce)
2002-07-11 23:18:41 +00:00
Tim Potter
e4722d2fcb Usage fixes from APPLIANCE_HEAD.
(This used to be commit 952d722a3b)
2002-07-11 23:11:42 +00:00
Tim Potter
246ec5ad07 Another compile fix.
(This used to be commit ef5c9698b0)
2002-07-11 23:08:51 +00:00
Tim Potter
cad934c8e9 Compile fix for flags field to cli_full_connection()
(This used to be commit 802f30a1b3)
2002-07-11 22:19:31 +00:00
Tim Potter
2dc9d4cfa1 Merge of init_domain_list() fix from APPLIANCE_HEAD.
(This used to be commit 66c9cab369)
2002-07-11 17:31:49 +00:00
Gerald Carter
fca23fab8a added copyright
(This used to be commit 0bb3d0f1ca)
2002-07-11 13:27:32 +00:00
Gerald Carter
bdfe11eaea added copyright
(This used to be commit dcb6d70706)
2002-07-11 13:17:57 +00:00
Andrew Tridgell
5d82785756 this implements a completely new strategy for fetching group
membership from an ADS server. We now use a 'member' query on the
group and do a separate call to convert the resulting distinguished
name to a name, rid etc. This is *much* faster for very large numbers
of groups (on a quantum test system with 10000 groups it drops the
time from an hour to about 35 seconds).

strangely enough, this actually *increases* the amount of ldap
traffic, its just that the MS LDAP server answers these queries much
faster.
(This used to be commit 5538048e4f)
2002-07-11 05:28:08 +00:00
Gerald Carter
137570cb03 last check in for tonight.
* DeletePrinterDriverEx() now has the ability to delete
    driver files.  I need to do some more testing
    tro veriofy that we are in fact not deleting a file out from
    under another driver, but it looks ok so far.

  * DeletePrinterDriver() noiw deletes all versions of the
    specified driver (cversion == 0, 1, 2, 3)
(This used to be commit 17bb780e13)
2002-07-11 04:53:39 +00:00
Andrew Tridgell
8fb570e6e0 this fixes the ads dump code
a char** isn't quite the same thing as a struct berval**  :)
(This used to be commit a92834ea94)
2002-07-11 03:41:09 +00:00
Gerald Carter
0aadcff8ec all that is left to do is to actually perform the
file deletion now.  I have the file list.
One more commit should do it.
(This used to be commit 7207662504)
2002-07-11 03:27:12 +00:00
Gerald Carter
496e85dd81 intermediate work on DeletePrinterDriverEx(). This call
will actually delete driver files ( not yet though I don't think).
Just wanted to get it in since Jeremy and I are both
working on nt_printing.c
(This used to be commit 3fa6c31329)
2002-07-11 01:54:26 +00:00
Jeremy Allison
b60bb290e0 Up the printing tdb version number to 5 as I've changed it.
Jeremy.
(This used to be commit f4eff4a99e)
2002-07-11 01:00:45 +00:00
Jeremy Allison
25148a148c *Experimental* new large-scaling printer code. Splits printing.tdb into
a separate tdb per printer, but only keeps (currently one) tdb open at
a time (although this is easily changed by changing a #define). Needs
scalability testing with large numbers of printers now....
Jeremy.
(This used to be commit b0909cfa14)
2002-07-11 00:06:29 +00:00
Andrew Bartlett
78722434a6 If we get a SID from group mapping, no need to check it's prefix.
Just set it directly.

Andrew Bartlett
(This used to be commit 202202bc47)
2002-07-10 07:26:35 +00:00
Simo Sorce
fe23e902c6 some support functions to ease the next commit.
(This used to be commit 4be1c882be)
2002-07-09 23:59:46 +00:00
Gerald Carter
51eeaa494c 8-byte alignment needed for beginning driver_info_level_6.
Verified by looking at NT4 and 2k servers.  First time
for everything I guess.
(This used to be commit f57640720e)
2002-07-09 23:23:19 +00:00
Tim Potter
8d26bc3581 Documented -I option to rpcclient.
(This used to be commit 9e64d6973b)
2002-07-09 19:13:11 +00:00
Tim Potter
d2707f1059 Added -I option to rpcclient.
(This used to be commit 2674adf1b5)
2002-07-09 19:11:26 +00:00
Andrew Tridgell
5ae8fa2df1 make sure we disable referrals in all ldap searches - they are badly
broken
(This used to be commit 022073d140)
2002-07-09 15:06:51 +00:00
Andrew Tridgell
3593e5baf7 fix declaration of global_in_nmbd
(This used to be commit 07de841836)
2002-07-09 14:47:03 +00:00
Andrew Tridgell
7f42c53971 the last WINS update broke self registration when we are a WINS
server. The real problem is all the special cases we had for when we
are a wins server as opposed to when we are using a 'real' wins
server.

This patch removes the special cases. We now accept non-broadcast
packets from ourselves and we use ourselves as a wins server when we
are one. This gets rid of the special cases and simplifies things
quite a bit.

It all seems to work, but there are bound to be problems found later.
(This used to be commit 3e843d3015)
2002-07-09 14:17:26 +00:00
Andrew Bartlett
71b04673bb Make it clear that the debug comment is the same as the command being tested
for failure.

Andrew Bartlett
(This used to be commit 6e22f39df8)
2002-07-09 13:12:27 +00:00