1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

883 Commits

Author SHA1 Message Date
Andrew Tridgell
a865f61e81 add help text for 'net ads lookup'
(This used to be commit 2a642a1169a3c09988daa9623dcb4f21b0a2ad1f)
2003-01-14 00:35:38 +00:00
Andrew Bartlett
5bd2d3f2ee Patch from metze to to make testparm show values for 'workgroup', 'netbios
name' and 'netbios scope'.  Probably has a similar effect on SWAT.

Also adds '-V' to testparm.

Andrew Bartlett
(This used to be commit 71f4d8efd36351ddb2180103c160a6d737da62b1)
2003-01-13 13:03:25 +00:00
Andrew Bartlett
73b0a2bdf8 Fix a number of client-side fstring/pstring mixups.
Andrew Bartlett
(This used to be commit fe1cc779d5ea77e87dbc0e2edf7c34a354fee6e0)
2003-01-11 12:04:14 +00:00
Richard Sharpe
dd22328000 Some fixes to editreg. Clientgen should not be touched, and an update to configure that Herb needs.
(This used to be commit 490ff93bbfe38d92746693d5f9902f985de6bc12)
2003-01-08 17:59:52 +00:00
Volker Lendecke
173856a77d Fix memory leak. Thanks, Herb!
Volker
(This used to be commit 8915d59a5939b78a177dcd3e075a122e68e8c64a)
2003-01-07 20:54:31 +00:00
Herb Lewis
3cbb089782 this makes it compile, but I'm not sure if it is correct. Are we really
testing a pointer value to be equal to 0x19 ???
(This used to be commit 15b2b91f4b77a62163c0f79592111d4809317b9f)
2003-01-07 17:55:14 +00:00
Volker Lendecke
7b4bf92955 Create a machine account correctly if the unix account exists.
With this, my test for W2kSP3 join after pdbedit -a -m works fine.

Volker
(This used to be commit c9d0c5254c7d4ddb343f405652c609a0128e60f9)
2003-01-07 10:38:33 +00:00
Tim Potter
186bb579f5 'index' is the name of a libc function. Rename to 'ndx' to avoid compiler
warnings.
(This used to be commit 431ac28b5b7ea688ec342b5834c25eca059e7a16)
2003-01-07 03:36:39 +00:00
Gerald Carter
57120dce63 WITH_SENDFILE #ifdef merged from SAMBA_2_2
(This used to be commit 5023aec5ada4a0d84878440ed67411b6a6b97ca2)
2003-01-02 18:20:42 +00:00
Andrew Bartlett
b0851cb1c7 Add a dash of static.
(This used to be commit 6d201c9616c5c30234c0d0d6cd9e2ca60bf736c5)
2003-01-02 12:39:36 +00:00
Andrew Bartlett
6d66fb308a BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
(This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2003-01-02 09:07:17 +00:00
Simo Sorce
a2244a4eca fix also net rpc shutdown
sorry
(This used to be commit 1eff36ff2fd20ff1844800acefb31972ad865527)
2002-12-30 23:38:17 +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 c7c3afbd0de8bd8797f91d350368a2419fcede0e)
2002-12-28 19:48:56 +00:00
Jeremy Allison
10c50fb580 Patch for coredump with missing arg from "Bradley W. Langhorst" <brad@langhorst.com>
Jeremy.
(This used to be commit 5914c38a54fcfdb007352b152dc2206708d59af6)
2002-12-28 01:23:34 +00:00
Jeremy Allison
0fdf60f051 Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit 784d15761c3271bfd602866f8f9f880dac77671c)
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 842e08e52a665ae678eea239759bb2de1a0d7b33)
2002-12-20 20:23:06 +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 9181ba0c682c3f37bbbaab96928c39757491d225)
2002-12-17 07:45:14 +00:00
Gerald Carter
636adbff27 fix usage message
(This used to be commit e68c7e0ebc053b97abf9c8a8213f305679ef000d)
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 8686b551cd0158a72c1ba4dfea6af5d0d7049210)
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 ab337572b82a0b40b56f055cdbb2f5864ef10c87)
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 330012a4d787c8b4a2eb6a4b77f53110815e073e)
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 eb2f1c826b28647fc99b46e203fe90147f7f3d05)
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 3564565d33e0e3a691e5014e39ab2e5156112a08)
2002-12-14 07:36:34 +00:00
Richard Sharpe
8569cc567f Begin to handle Security descriptors for keys.
(This used to be commit eca76f2f6609c9decd5cb9dcf7ab9b75c2a805a6)
2002-12-13 08:46:26 +00:00
Gerald Carter
d2e7d860b4 merge of smbpasswd segfault from SAMBA_2_2
(This used to be commit 8311c4bf8d9697f5a65a00300b60dfde12e46ae7)
2002-12-12 20:49:38 +00:00
Richard Sharpe
58ea9ea449 Fix a small bug.
(This used to be commit 16e0a3cc0834b691fcfec75d20dfdd5fa4d0afa6)
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 fbdd850e5a53e6e2c60dbf1eb6cdcf732307135f)
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 f4235ae1e6e691436d3b6dc2e903950b514a7601)
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 5273844a748230f710d860e33bdcde1c0b1e6c6f)
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 6b2943122a5008e0b06b52fcefd5e88326d9ecaa)
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 8bc6aa72f533976493dba7c70a95cdfc8856f0d4)
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 8dd608f7adeab33655b7eb139185108a69f64906)
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 b51bb89841b7251b90a7a58f0a046d87803223a9)
2002-12-09 09:07:00 +00:00
Richard Sharpe
4d9784b3c4 Begin to decode Value Keys, names and values ...
(This used to be commit 0ee49da74d357cc73ff4c7e4ee5659a35d085d4c)
2002-12-09 07:55:13 +00:00
Richard Sharpe
cedd02aaab Add some more handling of Key records ...
(This used to be commit 738a82110893b08fc701fbf7b639fa8cb6e116c7)
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 bab2b240ec9a04b636c80599489746529cdd9d57)
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 63efb7ab2f4d010d6df97c539c6225093cdbbdb1)
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 ee998438618c088d04ddfed05a9ba2d65f36e4ac)
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 a4f9b9effc9491bdc4d0fe4bea3d25d7436e6a71)
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 10bc459dd9d3b5e695f9e18624200705a1bf33dc)
2002-12-08 14:50:06 +00:00
Richard Sharpe
eeeb898fef Some more updates ...
(This used to be commit 92697adcd72434bcc38b98d618f013746a4db2ed)
2002-12-08 08:27:58 +00:00
Richard Sharpe
355b0e271b The beginnings of a registry editing program.
(This used to be commit b9cb3e6f2acc3e439e2fe99c750ab32983357d8f)
2002-12-08 07:53:35 +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 47f3bfe9564e7f3aff60cefaefd599e0abb30a31)
2002-11-26 11:57:30 +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 256d8c27cdc6f802f3bfba44593b07014f6ae10a)
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 71e24d0200e71ffcf52eaa77edc89175f31a45cd)
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 b3049bb0d0ff97142940e2b33e9603d1c231ccfe)
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 82dbf838879e8a2d2d3f9dd5be6eda50b780b787)
2002-11-24 08:32:03 +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 c31a17889e3e4daf7c1e807038efc2c0fba78be3)
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 0ac3af1a27b8f1b9935bbcb6f3ec0b11d01bfcbd)
2002-11-23 02:51:31 +00:00
Tim Potter
ee90b48633 Spelling fix.
(This used to be commit 43cd6e5a702bb1004b36a5845e0765851395ebf2)
2002-11-20 03:00:32 +00:00