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

965 Commits

Author SHA1 Message Date
Jeremy Allison
af9599e3c4 Revert by Simo's request. HEAD and 3.0 should be in sync for
this except for the modules load.
Jeremy.
(This used to be commit 388cf13648)
2002-12-28 19:48:59 +00:00
Jeremy Allison
561a6634b2 Revert by Simo's request. HEAD and 3.0 should be in sync for
this except for the modules load.
Jeremy.
(This used to be commit c7c3afbd0d)
2002-12-28 19:48:56 +00:00
Jeremy Allison
e114e03d3f Patch for coredump with missing arg from "Bradley W. Langhorst" <brad@langhorst.com>
Jeremy.
(This used to be commit 0958a2ae73)
2002-12-28 01:23:38 +00:00
Jeremy Allison
10c50fb580 Patch for coredump with missing arg from "Bradley W. Langhorst" <brad@langhorst.com>
Jeremy.
(This used to be commit 5914c38a54)
2002-12-28 01:23:34 +00:00
Jeremy Allison
98ac4503ac Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit aa8439a49e)
2002-12-23 23:54:10 +00:00
Jeremy Allison
0fdf60f051 Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit 784d15761c)
2002-12-23 23:53:56 +00:00
Jeremy Allison
7f23546730 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 842e08e52a)
2002-12-20 20:23:06 +00:00
Jeremy Allison
ef8bd7c4f7 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 09a218a9f6)
2002-12-20 20:21:31 +00:00
Tim Potter
8e5c9b0431 Merge from HEAD:
>Fix fnum leak under error condition in cacl_dump.
(This used to be commit cd11f10e84)
2002-12-20 01:35:21 +00:00
Richard Sharpe
a3460ac9ba Start adding code to allow the in memory version of the registry tree
structure to be manipulated. Keys can be partially deleted now.
(This used to be commit 9181ba0c68)
2002-12-17 07:45:14 +00:00
Gerald Carter
15f1f80686 fix usage message
(This used to be commit d06e77b60e)
2002-12-16 16:49:51 +00:00
Gerald Carter
636adbff27 fix usage message
(This used to be commit e68c7e0ebc)
2002-12-16 16:48:23 +00:00
Richard Sharpe
f35c421f5b We now read in the whole of the registry, including security bits.
Still have to make sure that the datastructure is correct, though.

Then on to writing it out and editing/changing keys, values and sec_descriptors
(This used to be commit 8686b551cd)
2002-12-16 03:23:25 +00:00
Tim Potter
099c284c47 Fix fnum leak under error condition in cacl_dump.
(This used to be commit ab337572b8)
2002-12-15 23:24:08 +00:00
Richard Sharpe
2e41b42d5a All the code for reading in the registy is done, but I have a malloc'd
area overrun somewhere :-(
(This used to be commit 330012a4d7)
2002-12-15 08:35:19 +00:00
Richard Sharpe
01a6f42443 Almost finished processing the registry encoded SEC DESC ...
Soon to move onto writing these things out.
(This used to be commit eb2f1c826b)
2002-12-15 06:39:17 +00:00
Richard Sharpe
4fb520c45f More code to read in and create security descriptor entries ...
(This used to be commit 3564565d33)
2002-12-14 07:36:34 +00:00
Richard Sharpe
8569cc567f Begin to handle Security descriptors for keys.
(This used to be commit eca76f2f66)
2002-12-13 08:46:26 +00:00
Gerald Carter
438c460cec merge of smbpasswd segfault from SAMBA_2_2
(This used to be commit b17af40b1c)
2002-12-12 20:50:31 +00:00
Gerald Carter
d2e7d860b4 merge of smbpasswd segfault from SAMBA_2_2
(This used to be commit 8311c4bf8d)
2002-12-12 20:49:38 +00:00
Richard Sharpe
58ea9ea449 Fix a small bug.
(This used to be commit 16e0a3cc08)
2002-12-11 07:55:44 +00:00
Richard Sharpe
f31ec23cf9 Improve the iterator wrt values ... Now prints keys and value names.
Does not print value values, yet.
(This used to be commit fbdd850e5a)
2002-12-11 07:51:07 +00:00
Richard Sharpe
3f501f0e31 Tidy up some bits. We can now at least list all the keys.
More work to do on the iterators and access functions.

Still not King. Stinks really.
(This used to be commit f4235ae1e6)
2002-12-10 23:25:11 +00:00
Richard Sharpe
117589526f Add support to Makefile.in for editreg
Fix a couple of duplicated macros.
(This used to be commit 5273844a74)
2002-12-10 21:29:03 +00:00
Richard Sharpe
c12b8d89e3 Complete more of the code. An iterator is close to complete. Compiles,
but not tested as yet.
(This used to be commit 6b2943122a)
2002-12-10 08:17:40 +00:00
Richard Sharpe
a5ba65ca37 Clean up the code some more. Create more elements of the tree.
Security Descriptors/Keys not yet processed.
Make debugging printfs only occur if verbose is set.
Create an iterator for the registry key.
Still not King. Bother!
(This used to be commit 8bc6aa72f5)
2002-12-10 06:20:53 +00:00
Richard Sharpe
2ad2557d11 Handle the creation of more parts of the tree ... Still have to do SK records
and the data parts of the VK records.

Also have to code up routines that can iterate across keys and values, as
well as return values associated with a particular key, etc.
(This used to be commit 8dd608f7ad)
2002-12-09 09:26:17 +00:00
Richard Sharpe
c5d23bdb80 Start allocating structures to keep the in memory copy of the registry tree
in. Don't yet handle the SK records (security descriptors), but will soon.

It still compiles on Linux, but I am still not King.
(This used to be commit b51bb89841)
2002-12-09 09:07:00 +00:00
Richard Sharpe
4d9784b3c4 Begin to decode Value Keys, names and values ...
(This used to be commit 0ee49da74d)
2002-12-09 07:55:13 +00:00
Richard Sharpe
cedd02aaab Add some more handling of Key records ...
(This used to be commit 738a821108)
2002-12-09 06:39:54 +00:00
Richard Sharpe
f3237d343e Commit some more changes ... Start processing the sub-keys, recursively.
(This used to be commit bab2b240ec)
2002-12-08 19:50:40 +00:00
Richard Sharpe
98da55e973 Fix the breakage, and start processing the first key record:
./editreg ~rsharpe/profile/NTUSER.DAT
NK HDR: Name len: 12, class name len: 0
Key name: $$$PROTO.HIV
(This used to be commit 63efb7ab2f)
2002-12-08 19:30:16 +00:00
Richard Sharpe
b09f6f386a Define some macros for accessing shorts and ints in an endian independent manner.
Start processing the header and etc.

Make sure it compiles on Linux, and runs on Linux for the code that is there.

Will try FreeBSD soon, and maybe Slowaris.
(This used to be commit ee99843861)
2002-12-08 17:04:23 +00:00
Richard Sharpe
1d44520de8 Add definitions of the various NT Registry on-disk structures ...
(This used to be commit a4f9b9effc)
2002-12-08 15:32:02 +00:00
Richard Sharpe
0670d6b156 Fix DAT_TIME so it becomes NTTIME and matches Samba source.
Add code to start reading the registry file.
(This used to be commit 10bc459dd9)
2002-12-08 14:50:06 +00:00
Richard Sharpe
eeeb898fef Some more updates ...
(This used to be commit 92697adcd7)
2002-12-08 08:27:58 +00:00
Richard Sharpe
355b0e271b The beginnings of a registry editing program.
(This used to be commit b9cb3e6f2a)
2002-12-08 07:53:35 +00:00
Tim Potter
f3e3a56ea9 Merge a bunch of trivial changes from HEAD. The difference remaining
should actual functional differences between HEAD and 3.0.

 - Mostly reformatting
 - Removal of unecessary #include "smb.h"
 - Merge of dyn_DRIVERFILE removal
 - Silly bug fix for python code
(This used to be commit d3998307ad)
2002-11-29 02:58:59 +00:00
Andrew Bartlett
65643516d7 Having waited for *way* too long, this is mimir's namecache and trusted domain
cache code.

This uses gencache, mimir's new caching code that stores at text-based cache
of various data.

Mimir has done a *lot* of work on this patch, and it is finally time to
get it in CVS.

Andrew Bartlett
(This used to be commit 47f3bfe956)
2002-11-26 11:57:30 +00:00
Gerald Carter
afc5f1aefb [print notify fixes from APP_HEAD]
* fixing change notify on print server handle
 * adding change notify support into smbcontrol for sending comment
   changes, etc...

All part of CR 1159/1160
(This used to be commit f1062e79de)
2002-11-26 00:46:31 +00:00
Gerald Carter
585e8a8c02 [print notify fixes from APP_HEAD]
* fixing change notify on print server handle
 * adding change notify support into smbcontrol for sending comment
   changes, etc...

All part of CR 1159/1160
(This used to be commit 256d8c27cd)
2002-11-26 00:01:56 +00:00
Andrew Bartlett
01063e8845 Add support to switch between Squid 2.4 and 2.5 protocols - squid doesn't
encode the username, so don't decode it (users could play HTTP escaping games
on usernames).

Andrew Bartlett
(This used to be commit 71e24d0200)
2002-11-24 21:08:36 +00:00
Andrew Bartlett
94596400e3 No need to #include smb.h, when we already #include include.h
(This used to be commit b3049bb0d0)
2002-11-24 08:37:02 +00:00
Andrew Bartlett
5aca399a38 Add ntlm_auth, a new program to provide a stable interface to winbind's
authentication code.

In particular, ntlm_auth is designed to replace the winbind authentication
'helpers' currently supplied by Squid.  I have added support for the current
plaintext password protocol used by Squid, and will add the real guts (NTLMSSP
support) shortly.

I'll merge this into 3.0 when I've got the interface more stable (error message
format etc) and got the important NTLMSSP support added.

Also move SWAT's URL decoding code into util_str.c, for use in both utilities.

Andrew Bartlett
(This used to be commit 82dbf83887)
2002-11-24 08:32:03 +00:00
Gerald Carter
3ab6fcc5c6 [merge from APP_HEAD]
90% fix for CR 1076.  The password server parameter will no take things
like

        password server = DC1 *

which means to contact DC1 first and the go to auto lookup if it
fails.


jerry
(This used to be commit 016ef8b36b)
2002-11-23 14:52:34 +00:00
Gerald Carter
191dff2d27 [merge from APP_HEAD]
90% fix for CR 1076.  The password server parameter will no take things
like

        password server = DC1 *

which means to contact DC1 first and the go to auto lookup if it
fails.


jerry
(This used to be commit c31a17889e)
2002-11-23 14:27:56 +00:00
Jeremy Allison
823f8507cb jcmd really should run with a higher compiler warning level more often :-).
Jeremy.
(This used to be commit 0ac3af1a27)
2002-11-23 02:51:31 +00:00
Jeremy Allison
46d5c060c6 jcmd really should run with a higher compiler warning level more often :-).
Jeremy.
(This used to be commit e93bd375b9)
2002-11-23 02:51:28 +00:00
Tim Potter
ee90b48633 Spelling fix.
(This used to be commit 43cd6e5a70)
2002-11-20 03:00:32 +00:00
Jim McDonough
3bea5acd2e Next step of printer publishing.
net ads printer publish <printername> [servername]
Will retreive the DsSpooler and DsDriver info by rpc for a remote server
then publish it.

Next comes doing it within smbd
(This used to be commit efeaa8f4f4)
2002-11-18 20:23:05 +00:00
Jim McDonough
711ad374ce Back out some goofs that accidentally checked in with printer publishing.
(This used to be commit 6b51934616)
2002-11-18 19:56:55 +00:00
Jim McDonough
bbd3e4b40a Next step of printer publishing.
net ads printer publish <printername> [servername]
Will retreive the DsSpooler and DsDriver info by rpc for a remote server
then publish it.

Next comes doing it within smbd
(This used to be commit 64951938cc)
2002-11-18 19:50:36 +00:00
Andrew Bartlett
c64d762997 Updates from HEAD:
- const for PACKS() in lanman.c
 - change auth to 'account before password'
 - add help to net rpc {vampire,samsync}
 - configure updates for sun workshop cc
 - become_root() around pdb_ calls in auth_util for guest login.

Andrew Bartlett
(This used to be commit 43e90eb6e3)
2002-11-15 21:43:57 +00:00
Andrew Bartlett
1cc2d96cac Add samdump and vampire to 'net rpc help'
Andrew Bartlett
(This used to be commit cc7566ca50)
2002-11-15 21:28:33 +00:00
Jelmer Vernooij
aff957e7f7 Don't crash when there are no arguments specified
(This used to be commit 0855e5810a)
2002-11-13 14:45:11 +00:00
Jeremy Allison
2f194322d4 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit f755711df8)
2002-11-12 23:20:50 +00:00
Jeremy Allison
250c980119 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit 82b8f749a3)
2002-11-12 23:15:52 +00:00
Jeremy Allison
f48a8615d6 After the lord mayors parade......
Janitor for tridge :-).
Jeremy.
(This used to be commit 76cdfbd510)
2002-11-10 03:07:19 +00:00
Andrew Tridgell
0026d5fb68 make sure we don't try to decode any null password buffers during a
SAM sync. This copes with both unset passwords from NT4 DCs and the
null passwords you get from w2k domains.
(This used to be commit 20c1cd86ac)
2002-11-10 02:16:43 +00:00
Jim McDonough
acfa3a679c Add net help join text, from Steve Langasek.
Also update the other commands to his correct example of [<method>], since
it is optional.

Thanks, Steve.
(This used to be commit 307d942ccd)
2002-11-09 18:01:27 +00:00
Jim McDonough
bf89d62259 Add net help join text, from Steve Langasek.
Also update the other commands to his correct example of [<method>], since
it is optional.

Thanks, Steve.
(This used to be commit 9fc12e6cb2)
2002-11-09 17:59:24 +00:00
Jelmer Vernooij
dc5297f413 Sync with HEAD
(This used to be commit 1a25dc776d)
2002-11-09 16:57:45 +00:00
Andrew Bartlett
2458c8de64 Merge fix for uninitialised IP variable from HEAD
(This used to be commit e3310ac832)
2002-11-09 03:27:42 +00:00
Andrew Bartlett
8ce292d96f Fix bug where not specifying '-S PDC' in 'net join' would cause it to attempt
to contact a random IP address.

Andrew Bartlett
(This used to be commit e6837a8560)
2002-11-09 02:36:47 +00:00
Andrew Bartlett
c19598f2a6 Merge from HEAD:
- change auth_sam to use the initialisation flags to determine if
	 the password attributes are set

 - add const to secrets.c, cliconnect.c

 - passdb:  fix spelling in pdb_ldap, add group mapping back to smbpasswd

 - SAMR: add debugs to show what fails for group enum.

Andrew Bartlett
(This used to be commit 4e74d00b36)
2002-11-08 23:08:59 +00:00
Andrew Bartlett
d03b002d12 Make smbpasswd tell people to use 'net join', not 'net rpc join' now we have
the automagic detection.
(This used to be commit a066bed5a4)
2002-11-08 22:13:34 +00:00
Jelmer Vernooij
10c82cf480 Back out lp_modules() check - this one got in by accident when I added poptSetOtherOptions
(This used to be commit d7388b3e1e)
2002-11-07 20:17:46 +00:00
Jeremy Allison
aecd050d38 Keeping 3.0 in sync....
Jeremy.
(This used to be commit 6d98ac2634)
2002-11-07 07:20:33 +00:00
Andrew Tridgell
faae0a81c3 fixed some formatting errors and improved some debug statements in
'net rpc vampire'
(This used to be commit 1526b3b19e)
2002-11-07 04:53:18 +00:00
Jeremy Allison
47955b2f6c Merge of scalable printing code fix... Needs testing.
Also tidied up some of Richard's code (I don't think he uses the compiler
flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like
I do :-) :-).
Jeremy.
(This used to be commit 10024ed06e)
2002-11-07 02:38:42 +00:00
Jeremy Allison
9304248788 Merge of scalable printing code fix... Needs testing.
Jeremy.
(This used to be commit d030df7643)
2002-11-07 02:15:35 +00:00
Tim Potter
ab1cf8d1cf Merge of get_dc_list() api change from HEAD.
(This used to be commit 6ba7847ce2)
2002-11-06 05:14:15 +00:00
Tim Potter
ea24bb2da8 Merge of get_dc_list() api change. This was slightly more intrusive
than the version in APPLIANCE so watch out for boogs.
(This used to be commit 1e054e3db6)
2002-11-06 01:29:07 +00:00
Richard Sharpe
31124420b7 A small fix by Andy Thomas. Now that incrementing the Auth index has
been pushed into a macro, things do not work so well. Move the increment out
of the array index.
(This used to be commit 39136827d1)
2002-11-05 20:40:55 +00:00
Jelmer Vernooij
b7b27a9f17 Tell popt this command requires 1 'normal' argument and has two optional 'normal' parameters
(This used to be commit b4f00ceaad)
2002-11-05 18:30:47 +00:00
Andrew Bartlett
b81b71a8d1 Merge vl's 'algorithmic rid base' patch, and my changes to pdb_smbpasswd's NUA
support from HEAD -> 3.0

Andrew Bartlett
(This used to be commit 89d8ebd520)
2002-11-05 07:20:27 +00:00
Richard Sharpe
03d4866ecd See if char * makes the Irix C compiler happier than void *?
(This used to be commit 6b218da645)
2002-11-05 04:23:48 +00:00
Richard Sharpe
48e10c116d Make all of the required (I think) changes to make this code work for
big endian and little endian systems.
(This used to be commit f50051120f)
2002-11-05 02:11:42 +00:00
Richard Sharpe
fd59cd4283 Start handling Big Endian machines as well as little endian.
(This used to be commit 8f45315b91)
2002-11-05 01:29:29 +00:00
Andrew Bartlett
a7f2feae31 Extra little fix to vl's patch. Make sure the passdb and testparm messages
say exactly the same thing - in particular that we can algorithmic rid base ==
1000, and use the BASE_RID macro to avoid the use of magic numbers.

Andrew Bartlett
(This used to be commit b70f2a8047)
2002-11-03 14:13:43 +00:00
Volker Lendecke
9422775efd Force algorithmic rid base to sane values and talk about it.
Volker
(This used to be commit ce5b2d991b)
2002-11-03 12:54:12 +00:00
Simo Sorce
d12baf7bf7 port sec_desc headers reordering from HEAD.
Thanks to Andrew Brtlet for the diff :-)
(This used to be commit cf67981e73)
2002-11-02 12:53:13 +00:00
Richard Sharpe
949133f5f2 Make sure that %u is used for SID elements ...
(This used to be commit 82f6b26403)
2002-11-02 06:21:10 +00:00
Andrew Bartlett
6d7195d1d7 Merge passdb from HEAD -> 3.0
The work here includes:
 - metze' set/changed patch, which avoids making changes to ldap on unmodified
attributes.

 - volker's group mapping in passdb patch

 - volker's samsync stuff
 - volkers SAMR changes.

 - mezte's connection caching patch

 - my recent changes (fix magic root check, ldap ssl)

Andrew Bartlett
(This used to be commit 2044d60bbe)
2002-11-02 03:47:48 +00:00
Richard Sharpe
b6a34f656c Add the changes to change the SIDs ...
You must make two passes over NTUSER.DAT, one for the OWNER SID and one for
GROUP SID.

I have not tested this yet ... that is, I have not tried to use this on
a Win2K etc server.
(This used to be commit 7eb89ba467)
2002-11-01 08:53:28 +00:00
Richard Sharpe
cbb4ccdaea Add more. Parse SIDs on the command line ... soon will actually mod the
SecDescs in the NTUSER.DAT ...
(This used to be commit dbc608ba7e)
2002-11-01 07:43:54 +00:00
Richard Sharpe
38e7a103da Fix small typo ...
(This used to be commit 59735a5aac)
2002-11-01 05:24:38 +00:00
Richard Sharpe
689d510ef6 Add more code to the profiles program and add Makefile.in support.
(This used to be commit daefe52a56)
2002-11-01 05:06:19 +00:00
Volker Lendecke
bf1ec6db99 search & replace doesn't always work reliably :-)
Volker
(This used to be commit 54115fd16f)
2002-10-31 17:34:49 +00:00
Richard Sharpe
094166151b Add a small utility that can print out the SEC DESCs in NTUSER.DAT.
This is an early, messy version of the code, but it illustrates what can
be done. It currently only prints the Owner SID, Group SID, and Perms and
SID from each ACE.

Once more work is done, it could actually walk the SEC DESCs and ACEs and
change the SIDS ...
(This used to be commit 322151509c)
2002-10-31 17:27:47 +00:00
Jelmer Vernooij
66946a667d sync with head
(This used to be commit 245e2cae25)
2002-10-28 19:50:06 +00:00
Jelmer Vernooij
9b6cd7db77 sync with head...
(This used to be commit 9daaf66754)
2002-10-28 19:48:00 +00:00
Jelmer Vernooij
66d95b8f45 Sync with HEAD
(This used to be commit a3d9fd65eb)
2002-10-28 19:37:02 +00:00
Volker Lendecke
68026338e9 Implement 'net maxrid'. Needed to find the maximum current rid to
set 'algorithmic rid base' correctly after a 'net rpc vampire'.

Volker
(This used to be commit 5c0869be32)
2002-10-28 12:55:22 +00:00
Volker Lendecke
5dbf435408 This moves the group mapping API into the passdb backend.
Currently this calls back to mapping.c, but we have the framework
to get the information into LDAP and the passdb.tdb (should we? I
think so..).

This has received moderate testing with net rpc vampire and
usrmgr. I found the add_groupmem segfault in add_aliasmem as
well, but that will be another checkin.

Volker
(This used to be commit f30095852f)
2002-10-21 19:28:56 +00:00
Volker Lendecke
0f8e108686 I was somewhat annoyed by 'pdbedit -a vl' spitting an error message
at me :-)

Volker
(This used to be commit c4452ef22c)
2002-10-21 19:25:04 +00:00
Jelmer Vernooij
c6e4a84cfa Fix usage message
(This used to be commit 2e328928aa)
2002-10-21 19:22:46 +00:00
Gerald Carter
4a5a88f8c9 sync with SAMBA_3_0
(This used to be commit 07ac86323f)
2002-10-21 15:49:26 +00:00
Gerald Carter
17c2d4198c removing make_printerdef tool and sources
(This used to be commit 7bde74ae35)
2002-10-21 15:44:57 +00:00
Jeremy Allison
389a16d9d5 Added new error codes. Fix up connection code to retry in the same way
that app-head does.
Jeremy.
(This used to be commit b521abd86b)
2002-10-17 17:10:29 +00:00