Progress with editreg.c
Richard Sharpe
rsharpe at richardsharpe.com
Mon Dec 16 04:00:00 GMT 2002
Hi,
Well, I now have editreg.c reading in all of the registry and building an
internal tree, I think. It currently prints out things like:
\$$$PROTO.HIV\AppEvents\EventLabels\.Default
SECURITY
Owner: S-1-5-21-838943839-3216150120-3991299721-2002
Group: S-1-5-21-838943839-3216150120-3991299721-2003
<No Name> : REG_SZ :
DispFileName : REG_SZ :
\$$$PROTO.HIV\AppEvents\EventLabels\ActivatingDocument
SECURITY
Owner: S-1-5-21-838943839-3216150120-3991299721-2002
Group: S-1-5-21-838943839-3216150120-3991299721-2003
<No Name> : REG_SZ :
\$$$PROTO.HIV\AppEvents\EventLabels\AppGPFault
SECURITY
Owner: S-1-5-32-544
Group: S-1-5-18
<No Name> : REG_SZ :
DispFileName : REG_SZ :
Which leaves a lot to be desired because actual values are not yet
printed, and the DACLs are not being printed.
However, I have confirmed that the datastructure is correct (as far as I
can see).
Next steps are:
1. Figure out how to write one of these things out.
2. Add code to operate on the tree
- delete keys (and the subtrees below them)
- add keys
- change keys and values
- Add and delete and change ACEs on DACLs and SACLs as well sa change
owner and group SIDs.
3. Convert to a library so Idra can make a Python interface
Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com
More information about the samba-technical
mailing list