1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00

10381 Commits

Author SHA1 Message Date
Simo Sorce
b242cfe6b3 oh god, I will forgot my name one of these days :-/
(This used to be commit 0b2591cc4001dd5430591f1871b76c1a6d133b43)
2002-12-16 21:22:09 +00:00
Simo Sorce
928b534961 forgont genstruct.pl is needed to build new include files for genparse
sorry
(This used to be commit 4029dae9064e10a02006e9d0a5d8cf93e22eaed5)
2002-12-16 17:51:40 +00:00
Jim McDonough
dca69cb793 Add win32 utility to query driver capabilities to publish
(This used to be commit c09c1e090525aeccb9ee7762a44aba286c4d71f9)
2002-12-16 17:26:01 +00:00
Gerald Carter
636adbff27 fix usage message
(This used to be commit e68c7e0ebc053b97abf9c8a8213f305679ef000d)
2002-12-16 16:48:23 +00:00
Simo Sorce
48fb7b090e updates to the gums
introduce genparser will be used by tdbsam2
(This used to be commit 831d3d1ec751f23481f26b31d22b09f3d9c0709a)
2002-12-16 12:11:02 +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
Jeremy Allison
96791a9aa4 Ensure talloc pool query messages are reserved.
Jeremy.
(This used to be commit 3520195523c629c4d936db6b0112bd4bd4426ad7)
2002-12-14 01:33:02 +00:00
Jeremy Allison
a030b19767 The name pointer in the talloc context must not be a talloced entry as
calling talloc_destroy_pool(as we do sometimes) will destroy it.
Jeremy.
(This used to be commit 63f344e27be5aaf2204899fea7d53a7302001108)
2002-12-14 00:57:01 +00:00
Jim McDonough
5f9348d4fc Store printer guid in the dsspooler registry key so we don't have to
query the directory server every time someone asks
(This used to be commit f0fc4e30f6284565de404a20450a587cd3fe00a5)
2002-12-13 21:54:09 +00:00
Jeremy Allison
72e16f233d Fix for old DOS client when veto files is set to /.*/
Jeremy.
(This used to be commit 636ab292db8816663c507dd8dbf85078392af5f8)
2002-12-13 19:07:25 +00:00
Jim McDonough
bfd8043a40 More printer publishing code.
- Add published attribute to info2, needed for win clients to work properly
- Return proper info on getprinter 7

This means you can now look at the sharing tab of a printer and get correct
info about whether it is published or not, and change it.
(This used to be commit adda04379ee46f105436262663652f3f576fa3cf)
2002-12-13 18:56:48 +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
Tim Potter
24678bf421 Guy Harris points out that the level and ptr fields in a
SPOOL_USER_CTR look like they should be transposed.  We don't make use
of the user level information (what is it used for??) so I haven't
changed any code, just added a comment.
(This used to be commit bbb0b2ee40acfeb8cd91a55feb1db0c1e2d9ced5)
2002-12-13 04:41:59 +00:00
Gerald Carter
f6c4f25e43 merge of get_dc_name()-like code from APP_HEAD; better support password server = DC1 *
(This used to be commit 6b18ca9511ddcf1718f222af3f61491d1e5f3b60)
2002-12-12 23:35:55 +00:00
Gerald Carter
482f77e635 ignore editreg
(This used to be commit a48d8d3f118261a8e632a7e9c80f3cda4afdfaa1)
2002-12-12 20:52:21 +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
Martin Pool
aabcd65020 CR1333: Fix memory leak when unpacking some structures.
* (pytdbunpack_item): PyList_Append creates an additional reference to
  the appended object.  Therefore, release the initial reference after
  it's added to the list.
(This used to be commit 1e63dc101a5085a46b9632ba657e5d5cd7505751)
2002-12-12 05:24:55 +00:00
Martin Pool
022a853781 * Ignore .pyc and .pyo files produced as a side-effect of running
Python examples.
(This used to be commit 3bb4bd3ed642a61e54c44c40c31f0e2242977614)
2002-12-12 04:44:47 +00:00
Jeremy Allison
120ead2f94 Added "kernel change notify" boolean to allow easier valgrind testing.
Jeremy.
(This used to be commit ac856fbb96e5ed21992972805b27cc8c3f9377df)
2002-12-12 02:01:53 +00:00
Jeremy Allison
7dd847ba9c Fixed auth module code. Added VALGRIND defines to reduce spurious warnings.
Jeremy.
(This used to be commit ff3a8d37289216a2cb808406044a7abef1e564d0)
2002-12-11 23:54:46 +00:00
Jeremy Allison
f7267c1235 Fix write error returning EFBIG - found by Conrad.
Jeremy.
(This used to be commit 2d63fc7760634308cc280e4d745a6f7398f75d20)
2002-12-11 18:52:32 +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
Tim Potter
fad3464ffe Some more tweaking for compilation of py_tdbpack.
(This used to be commit 89be695b2997e97dfc40afd17bb61b59b85634e4)
2002-12-11 01:25:18 +00:00
Jeremy Allison
89ef861b4b Fix client large file reporting.
Jeremy
(This used to be commit 185804ac945e717a5e3d3602e8118b35080f6251)
2002-12-10 23:27:12 +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
Herb Lewis
2ce7686a45 fix broken incremental tar - merge from 2.2
found by "Jacob Anawalt" <anawaltaj@hotmail.com>
(This used to be commit 52fdb787d426976941080acff126d592b288f301)
2002-12-10 21:50:44 +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
Jeremy Allison
7c83af93e9 The _abs time functions should not be converting from/to GMT.
Patch from "Jordan Russell" <jr-list-samba-technical@quo.to>
Jeremy.
(This used to be commit aecc9db60a3c8227e2d24c775282cf6c1a37efaa)
2002-12-10 00:46:47 +00:00
Simo Sorce
6265861252 finnally put in Alexander parametric pacth
(This used to be commit e6ae8b4eac66637d398406545654bba960d9e6b8)
2002-12-09 13:02:27 +00:00
Simo Sorce
e6e3b79f74 make vfs recycle use vfs facilities correctly!
WARNING: every vfs module maintainer should look at these changes to understand how to properly write a vfs module in head!!

also make installmodules work correctly when the directory structure is not yet in place.

Simo.
(This used to be commit 6dfa46098679681a6d2c931395d6eeae2a978466)
2002-12-09 12:06:15 +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
Jelmer Vernooij
6a35fc93e7 Fix example command (reported by Cameron Maxwell)
(This used to be commit 29bda72da0902b721a56e3afa62d2c537598b26c)
2002-12-08 20:36:52 +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
2a8b92abd3 A small fix to Makefile.in from Bradley Longhurst.
Less Fir needed.
(This used to be commit 481fa87154a15eebd5a59ac4de9912fa932a42e7)
2002-12-08 18:48:48 +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
Simo Sorce
a543e6ea62 make querygroup in rpcclient working, same fix as per 2.2 tree
(This used to be commit 8877ff2482bfa880614a9f40eed448d60216419d)
2002-12-08 11:56:45 +00:00
Richard Sharpe
eeeb898fef Some more updates ...
(This used to be commit 92697adcd72434bcc38b98d618f013746a4db2ed)
2002-12-08 08:27:58 +00:00