Günther Deschner
4032802721
Ignore generated pkgconfig files.
...
Guenther
(This used to be commit 1688eae5e8
)
2008-01-03 12:31:16 +01:00
Günther Deschner
2c072ac879
Some coding convention pedantism.
...
Guenther
(This used to be commit 338baf96cb
)
2008-01-03 12:11:18 +01:00
Michael Adam
0240d175bf
Return existsing cache_tree if it has already been initialized.
...
So reghook_cache_init() does not leak memory when called more
than once.
Also, fix the return value while we are at it.
Michael
(This used to be commit 25f571f40a
)
2008-01-03 12:07:02 +01:00
Michael Adam
984aa7a156
Rename libnet_smbconf_reg_setvalue_internal() to libnet_smbconf_reg_set_value().
...
Michael
(This used to be commit 3fc3fee88a
)
2008-01-03 11:35:21 +01:00
Michael Adam
e0ea759807
Fix a comment.
...
Michael
(This used to be commit 2d0c7fe44f
)
2008-01-03 11:33:17 +01:00
Michael Adam
a750e223b3
Rename libnet_smbconf_reg_createkey_internal to libnet_smbconf_reg_create_service_key.
...
Michael
(This used to be commit 08056a2c81
)
2008-01-03 11:32:00 +01:00
Michael Adam
fd597c7e6d
Add libnet_conf API function libnet_smbconf_create_share().
...
And make libnet_smbconf_setparm() return error if the share
does not already exist. Adapt net_conf_addshare to this new
situation.
Michael
(This used to be commit de349bd26d
)
2008-01-03 11:30:14 +01:00
Günther Deschner
40079c4eb4
Remove unused vars.
...
Guenther
(This used to be commit ff3f0006d1
)
2008-01-03 10:49:39 +01:00
Volker Lendecke
149e86b842
Trivial simplification
...
... things you come across when you review code
(This used to be commit 1e006bcfb1
)
2008-01-03 10:24:45 +01:00
Volker Lendecke
2242f2673c
Add comments
...
Jeremy was able to use this correctly without comments, so the code can't be
*that* bad :-)
(This used to be commit 6f22f7c13f
)
2008-01-03 10:24:11 +01:00
Jeremy Allison
cfcdeb52bf
Fix for bug #5163 from Laurent Pinchart <pinchart@skynet.be>
...
Failure to change password in ldap is mapped to NT_STATUS_UNSUCCESSFUL unconditionally.
Jeremy.
(This used to be commit 9369d6e907
)
2008-01-02 18:20:23 -08:00
Jeremy Allison
cc957c7f6d
Convert the little caches in util_sock.c to use
...
the singleton memcache. Vl please check (passes
make valgrindtest).
Jeremy.
(This used to be commit a4d613cde8
)
2008-01-02 17:37:39 -08:00
Michael Adam
ad1cc905b2
Don't leak: Use a temporary context for the admin token and free it.
...
Michael
(This used to be commit 9d7502115e
)
2008-01-03 01:29:43 +01:00
Michael Adam
3c9f7c7a64
Use libnet_smbconf_reg_open_path() in libnet_smbconf_drop().
...
Replaces creation of token and direct use of reg_open_path.
Michael
(This used to be commit 7e407e18be
)
2008-01-03 01:29:43 +01:00
Michael Adam
3bf57a4d82
Abstract opening of registry path out of libnet_smbconf_reg_open_service_key().
...
Creates new function libnet_smbconf_reg_open_path().
Use libnet_smbconf_reg_open_path() directly in libnet_smbconf_reg_open_basekey().
Return error in libnet_smbconf_reg_open_service_key() when NULL
servicename is given.
Michael
(This used to be commit 1e46b47963
)
2008-01-03 01:29:43 +01:00
Michael Adam
f9bb8a345e
Add debug output in error path.
...
Michael
(This used to be commit a58ccbc6d7
)
2008-01-03 01:29:43 +01:00
Michael Adam
b344dafa62
Fix setting of error code in error path.
...
Michael
(This used to be commit 8a7954a9ae
)
2008-01-03 01:29:43 +01:00
Michael Adam
a6fb71e55b
Use a better parameter name.
...
Michael
(This used to be commit 3972deb90c
)
2008-01-03 01:29:43 +01:00
Michael Adam
c995a63371
Rename libnet_smbconf_reg_open_path() to libnet_smbconf_reg_open_service_key().
...
Michael
(This used to be commit d95b4935d3
)
2008-01-03 01:29:43 +01:00
Michael Adam
d191bb126b
Hey, it is 2008 now.
...
:-)
Michael
(This used to be commit a1d3f60ea7
)
2008-01-03 01:29:43 +01:00
Michael Adam
102fda5c29
Choose a more apropriate parameter name.
...
Michael
(This used to be commit 39a73b6291
)
2008-01-03 01:29:43 +01:00
Michael Adam
83d74c10a2
Rename libnet_smbconf_reg_open_basepath() to libnet_smbconf_reg_open_basekey().
...
Michael
(This used to be commit 9e953a94e9
)
2008-01-03 01:29:43 +01:00
Gerald (Jerry) Carter
0df7bcaec3
Fix some C++ warnings (patch was Volker's) - implicit case from void* to char*
...
(This used to be commit 518168410c
)
2008-01-02 17:34:41 -06:00
Gerald (Jerry) Carter
59f5b4c9d7
Merge branch 'work/v3-2-test' into v3-2-test
...
(This used to be commit 761858312b
)
2008-01-02 17:15:10 -06:00
Gerald (Jerry) Carter
23b3b7c2b3
use C99 bool return types (true & false).
...
(This used to be commit f22c9d6296
)
2008-01-02 14:54:25 -06:00
Gerald (Jerry) Carter
701a56a698
Make sure that wbcLookupSid() and wbcLookupRids() use talloc()'d memory.
...
Follows existing convention that all returned memory should be freed with
wbcFreeMemory() and not directly with free(). Noticed by Volker. Txs.
(This used to be commit 39c2059f66
)
2008-01-02 14:50:59 -06:00
Jeremy Allison
0090ec236d
Attempt to fix bug #3617 . Mix of patches from Volker and
...
myself. Use standard dlinklist macros.
Jeremy.
(This used to be commit 1b06ee69f6
)
2008-01-02 11:56:07 -08:00
Michael Adam
a5d2449fe1
Use the proper boolean constants.
...
Michael
(This used to be commit f731fee408
)
2008-01-02 17:08:28 +01:00
Günther Deschner
4656265a23
Fix libnetapi (resolve dependency on libwbclient).
...
Guenther
(This used to be commit fa669b307c
)
2008-01-02 13:52:23 +01:00
Günther Deschner
0195afeed7
Fix libsmbclient (resolve dependency on libwbclient).
...
Guenther
(This used to be commit ef17dc7bda
)
2008-01-02 13:52:23 +01:00
Günther Deschner
866b5291b6
Make libsmbsharemodes.so work again (fix unresolved tdb symbols).
...
Guenther
(This used to be commit 3c6ed03216
)
2008-01-02 13:52:23 +01:00
Volker Lendecke
523dbf801b
Convert call_trans2open to create_file()
...
(This used to be commit 22138572bd
)
2008-01-02 13:32:29 +01:00
Volker Lendecke
8ad3db1d2b
Convert reply_mknew to create_file
...
(This used to be commit 1b1cea9ef0
)
2008-01-02 13:32:23 +01:00
Volker Lendecke
cc322c708c
Convert reply_open_and_X to create_file
...
(This used to be commit fa09b9ab26
)
2008-01-02 13:32:12 +01:00
Volker Lendecke
c132824265
Convert reply_open to create_file
...
(This used to be commit 209c696ab8
)
2008-01-02 13:32:07 +01:00
Günther Deschner
4484339174
Add test_shlibs to Makefile.
...
Guenther
(This used to be commit 5f5051911c
)
2008-01-02 13:25:25 +01:00
Günther Deschner
9b5ec6ba03
Happy new year !
...
Guenther
(This used to be commit 9a58cd5795
)
2008-01-02 12:56:24 +01:00
Volker Lendecke
31d3f5726a
Use NULL instead of 0
...
"struct security_descriptor" has pointers, not integers inside
(This used to be commit 13158014e3
)
2008-01-01 13:13:31 +01:00
Michael Adam
8598bbbcb1
Make the last two helper functions in libnet_conf.c static.
...
Now the registry backend is completely hidden from the API.
Michael
(This used to be commit 5608c398ad
)
2007-12-31 03:57:45 +01:00
Michael Adam
4c7ef1c03e
Make grouping in if statement more explicit.
...
Michael
(This used to be commit a1bb47695a
)
2007-12-31 03:55:22 +01:00
Michael Adam
feb4d82724
Fix a permissions error in reg_deletekey_recursive().
...
Michael
(This used to be commit 4a56d3d707
)
2007-12-31 03:25:54 +01:00
Jeremy Allison
06f80cf8be
We may use 127k read/write for encrypted connections.
...
Jeremy.
(This used to be commit 656c9d0844
)
2007-12-30 18:05:33 -08:00
Michael Adam
8d9fb62a45
Change net_conf_import() to only use libnet_conf API functions.
...
More precisely, only import_process_service() is changed.
This removes all references to registry code from net_conf.c.
net_conf_import() is currently -- like net_conf_addshare() -- also
considered a high-level add-on, not an API function.
Michael
(This used to be commit b4dca117c0
)
2007-12-31 03:02:39 +01:00
Michael Adam
01f8fd55a7
Rewrite net_conf_addshare() to only use libnet_conf API functions.
...
Also exit on error if the share already exists.
net_conf_addshare() is considered a high level utility function.
It should not be an libnet_conf API function in itself since it is
kind of arbitrary.
Michael
(This used to be commit af5218f150
)
2007-12-31 01:56:18 +01:00
Michael Adam
e8a680cdf3
Rename libnet_smbconf_key_exists() to libnet_smbconf_share_exists()
...
and move it to the api section of libnet_conf.c
Michael
(This used to be commit 9b5d8f4d95
)
2007-12-31 01:14:44 +01:00
Michael Adam
a74de0c7eb
Remove an unused variable.
...
Michael
(This used to be commit 332be113a7
)
2007-12-30 22:36:02 +01:00
Michael Adam
0f2e7c7381
Remove an unused variable.
...
Michael
(This used to be commit 7bac935b65
)
2007-12-30 22:36:01 +01:00
Michael Adam
80957726b6
Remove all d_fprintf-s from libnet_conf.c
...
Replacing them buy DEBUG statements and filling in
d_fprintfs in callers in net_conf.c.
Michael
(This used to be commit 1f0122d8d4
)
2007-12-30 22:36:01 +01:00
Jeremy Allison
c6646f115e
As the encryption is stream based there's no reason
...
oplock breaks can't be encrypted. If we have multiple
contexts I should probably attach them to the connection
struct, but for now use the global context number.
Jeremy.
(This used to be commit 5b4b335ed0
)
2007-12-30 13:10:29 -08:00
Jeremy Allison
f04daa682a
Fix error message.
...
Jeremy.
(This used to be commit a0494b115b
)
2007-12-29 22:42:20 -08:00