1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

2386 Commits

Author SHA1 Message Date
Günther Deschner
1c788bc365 Use rpccli_samr_GetGroupsForUser() all over the place.
Guenther
(This used to be commit d1c669920e)
2008-02-07 14:25:18 +01:00
Günther Deschner
ba9cda7ad9 Use rpccli_samr_QueryAliasInfo() in net.
Guenther
(This used to be commit 5bf6c8b6d8)
2008-02-07 13:37:59 +01:00
Günther Deschner
1500538ae8 Use rpccli_samr_SetGroupInfo() in net.
Guenther
(This used to be commit 5909e9f971)
2008-02-07 11:03:35 +01:00
Günther Deschner
32ca0e8147 Use rpccli_samr_SetAliasInfo() in net.
Guenther
(This used to be commit 18c52030bb)
2008-02-07 10:56:24 +01:00
Günther Deschner
99bff2fc72 Use rpccli_samr_QueryDomainInfo() in net_rpc_sh_acct.c.
Guenther
(This used to be commit 65e978eacc)
2008-02-06 02:09:23 +01:00
Günther Deschner
b0374e6b34 Use rpccli_samr_QueryDomainInfo() in net rpc.
Guenther
(This used to be commit 82073db9f7)
2008-02-06 02:09:04 +01:00
Günther Deschner
fc681ec581 Use rpccli_samr_RemoveMemberFromForeignDomain() in net.
Guenther
(This used to be commit 91c48ae15b)
2008-02-05 13:19:47 +01:00
Günther Deschner
2823c1eab1 Use rpccli_samr_QueryGroupMember() all over the place.
Guenther
(This used to be commit 1793ed10df)
2008-02-05 13:19:47 +01:00
Günther Deschner
2e73c54fe3 Use rpccli_samr_GetMembersInAlias() in net and rpcclient.
Guenther
(This used to be commit 3f48f9e671)
2008-02-05 10:05:53 +01:00
Günther Deschner
f22e45c8a2 Use rpccli_samr_AddAliasMember() in net.
Guenther
(This used to be commit 390597c96c)
2008-02-05 10:01:27 +01:00
Günther Deschner
698edf4d80 Use rpccli_samr_DeleteAliasMember() in net.
Guenther
(This used to be commit b04bf5c125)
2008-02-05 09:58:23 +01:00
Günther Deschner
270ba9c238 Use rpccli_samr_Connect2() all over the place.
Guenther
(This used to be commit bdf8d56262)
2008-02-04 22:12:40 +01:00
Günther Deschner
babf5d5f5c Use rpccli_samr_AddGroupMember() in net.
Guenther
(This used to be commit e2635fa1e4)
2008-02-04 18:45:25 +01:00
Günther Deschner
db5054fd99 Use rpccli_samr_DeleteGroupMember() in net.
Guenther
(This used to be commit 4e1496894b)
2008-02-04 18:32:34 +01:00
Volker Lendecke
88c27f83d4 Convert receive_smb_raw to NTSTATUS
(This used to be commit ba771bd858)
2008-02-02 11:03:23 +01:00
Günther Deschner
ddbe4ea6b7 Use rpccli_samr_CreateUser2() all over the place.
Guenther
(This used to be commit 701af69118)
2008-02-01 16:29:20 +01:00
Günther Deschner
cc1350a353 Use rpccli_samr_CreateDomainGroup() in net and rpcclient.
Guenther
(This used to be commit 7b7b10adca)
2008-02-01 16:29:20 +01:00
Günther Deschner
99ebfd810f Use rpccli_samr_CreateDomAlias() in net and rpcclient.
Guenther
(This used to be commit 1248ec89d2)
2008-02-01 16:29:20 +01:00
Günther Deschner
37b56c0113 Use rpccli_samr_OpenUser() all over the place.
Guenther
(This used to be commit da90eb7653)
2008-02-01 12:30:15 +01:00
Günther Deschner
2c7428e64e Use rpccli_samr_OpenAlias() in net and rpcclient.
Guenther
(This used to be commit f66facc0f8)
2008-02-01 12:29:58 +01:00
Günther Deschner
482eaa8e5c Use rpccli_samr_OpenGroup() all over the place.
Guenther
(This used to be commit d019fc69a9)
2008-02-01 12:29:35 +01:00
Günther Deschner
42960f817a Use rpccli_samr_OpenDomain() all over the place.
Guenther
(This used to be commit e4e9d72724)
2008-02-01 12:29:10 +01:00
Günther Deschner
e4a64da293 Use rpccli_samr_DeleteUser() in net and rpcclient.
Guenther
(This used to be commit 5bd8f7067d)
2008-02-01 10:17:38 +01:00
Günther Deschner
e33db782d2 Use rpccli_samr_DeleteDomAlias() in net and rpcclient.
Guenther
(This used to be commit bbed3aed51)
2008-02-01 10:15:39 +01:00
Günther Deschner
8303e8cf80 Use rpccli_samr_DeleteDomainGroup() in net and rpcclient.
Guenther
(This used to be commit 8cc094ddb5)
2008-02-01 10:14:10 +01:00
Günther Deschner
5334b364c2 Remove rpccli_samr_close and use pidl generated function instead.
Guenther
(This used to be commit 64f0889401)
2008-01-31 11:09:11 +01:00
Kai Blin
a8209904a5 ntlm_auth: Parse configfile after parsing it's location, not before.
(This used to be commit cf671ca35b)
2008-01-31 09:42:18 +01:00
Günther Deschner
5ab43ae0d8 Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).
Guenther
(This used to be commit fd490d236b)
2008-01-29 15:09:56 +01:00
Günther Deschner
92183450f1 Trying to avoid defining new SAMR acct creation flags when we already have them with different
names. Matt, Jeremy, please check.

Guenther
(This used to be commit d4a9e46edf)
2008-01-25 01:04:30 +01:00
Günther Deschner
108fc52c6b Add dump-domain-list command for debugging winbindd's domain_list.
Guenther
(This used to be commit 10fa43f284)
2008-01-24 16:21:53 +01:00
Andreas Schneider
691c4b1a41 Windows 2008 (Longhorn) auth2 flag fixes.
Interop fixes for AD specific flags. Original patch from Todd Stetcher.
(This used to be commit 5aadfcdaac)
2008-01-23 14:55:22 -08:00
Jeremy Allison
a0186fb78d Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
patch for adding acct_flags to rpccli_samr_create_dom_user().
Jerry please test.
Jeremy.
(This used to be commit 7d94f97947)
2008-01-23 13:54:02 -08:00
Kai Blin
b133f5ac0a ntlm_auth: Get rid of statics in manage_squid_ntlmssp_request
(This used to be commit 97768628f5)
2008-01-19 13:16:24 +01:00
Kai Blin
4b05fd29e6 ntlm_auth: Rewrite manage_client_ntlmssp_request without statics.
(This used to be commit af43842622)
2008-01-19 13:16:24 +01:00
Kai Blin
40db1a1625 nltm_auth: Use struct ntlm_auth_state in helper functions.
Now rewriting the helpers one after the other can start.
(This used to be commit 2479a0c3ad)
2008-01-19 13:16:24 +01:00
Kai Blin
83f30d72e0 ntlm_auth: Prepare for a deeper rewrite of the helper functions
(This used to be commit f8243d1913)
2008-01-19 13:16:24 +01:00
Kai Blin
f22a29e1bd ntlm_auth: Dynamically allocate the read buffer.
This ports over my changes from Samba4
(This used to be commit 4a475baf26)
2008-01-19 13:16:23 +01:00
Kai Blin
805caafd44 util_str: Don't return memory from talloc_tos(), use mem_ctx instead.
(This used to be commit ab0ee6e9a6)
2008-01-19 02:20:16 +01:00
Günther Deschner
c920764b19 Apply const to rpccli_lsa_query_info_policy() and rpccli_lsa_query_info_policy2().
Guenther
(This used to be commit 7a3fe68bef)
2008-01-15 16:40:22 +01:00
Volker Lendecke
2b14428330 Fix some warnings -- Jeremy, please check
(This used to be commit b66ac8567c)
2008-01-15 11:01:18 +01:00
Günther Deschner
36a7316bfc Some more minor cleanup for "net rpc audit".
Guenther
(This used to be commit 558ce4ec3e)
2008-01-14 18:39:15 +01:00
Günther Deschner
662d61e742 Fix all callers of old rpccli_lsa_set_info_policy() call.
Guenther
(This used to be commit be8071779f)
2008-01-14 17:17:20 +01:00
Günther Deschner
cb1a090577 Use pidl generated rpccli_lsa_QueryTrustedDomainInfoBySid when vampiring trusted
domain secrets.

Guenther
(This used to be commit aa3de6f9f5)
2008-01-14 15:33:42 +01:00
Michael Adam
801eeaec09 Add and modify comments in net_conf.c
Michael
(This used to be commit b3afc8391d)
2008-01-13 23:45:57 +01:00
Michael Adam
a6bf13ce97 Add explicit creation of shares to net conf import function.
It has been removed from libnet_conf_set_parameter().

Michael
(This used to be commit b5c533b06c)
2008-01-13 23:30:08 +01:00
Michael Adam
1ee6d3e1ee Introduce a libnet_conf context created by libnet_conf_open().
The libnet_conf_ctx stores the information necessary to interoperate
with the configuration. It is created by calling libnet_conf_open()
and destroyed by calling libnet_conf_close(). The context is passed
to all the libnet_conf functions. It currently stores the token to
access the registry. Later, it could store more data, e.g. the server
to connect to, credentials, and so on. For support of other backends
than registry or support of remote configuration, only the open
function will have to be changed.

In net_conf, the calls to the actual net_conf functions is wrapped
into a function that calls libnet_conf_open()/_close(). Thus an
individual variant of net_conf_runfunction2() and functable2 is
used to cope with functions being called by the wrapper with the
additional libnet_conf_ctx argument.

Michael
(This used to be commit c2a9346faa)
2008-01-13 02:14:34 +01:00
Jeremy Allison
43717a16e2 Fix CID 476. Ensure a valid pac_data pointer is always passed to
ads_verify_ticket as it's always derefed.
Jeremy.
(This used to be commit 0599d57eff)
2008-01-11 23:53:27 -08:00
Jeremy Allison
bd317be33b Stop Coverity complaining about uninitialized variables.
Jeremy.
(This used to be commit 041f1d298c)
2008-01-11 23:41:17 -08:00
Günther Deschner
c79ce2ffa3 As long as DsGetDcName is not part of libnetapi, lowercase the fn name.
Guenther
(This used to be commit 19a980f520)
2008-01-11 15:32:20 +01:00
Günther Deschner
efcf285e27 Fix libnetapi error string callers.
Guenther
(This used to be commit 1ad7a0a361)
2008-01-11 15:28:24 +01:00
Günther Deschner
83b1751615 Remove unused string.
Guenther
(This used to be commit 88d6683872)
2008-01-10 13:02:10 +01:00
Volker Lendecke
b43719d0fb Attempt to fix the compile of source/utils/net_dns.c
Jeremy, please check!
(This used to be commit 66d3012bf4)
2008-01-09 12:10:55 +01:00
Jeremy Allison
7ca33d1112 Move the DNS tsig update to using struct sockaddr_storage
from struct in_addr. Still only does IPv4 updates but now
it'll be easy to add IPv6 when we have time.
Jeremy.
(This used to be commit ac3a433bef)
2008-01-08 13:11:12 -08:00
Günther Deschner
62c91987d9 Use ads_get_upn() in net_derive_salting_principal().
Guenther
(This used to be commit a3b348b113)
2008-01-08 14:07:18 +01:00
Jeremy Allison
af2a75ba61 Add -e to smbget.
Jeremy.
(This used to be commit 0475bdcf44)
2008-01-05 00:51:50 -08:00
Jeremy Allison
a41972e801 Fix -e for smbcquotas.
Jeremy.
(This used to be commit f97b1247c1)
2008-01-05 00:50:03 -08:00
Jeremy Allison
160fefc71a Fix args to cli_force_encryption.
Jeremy.
(This used to be commit 7b0826aeec)
2008-01-05 00:41:48 -08:00
Jeremy Allison
9baa97a46e Add general '-e' option to enable smb encryption
on tools.
Jeremy.
(This used to be commit 757653966f)
2008-01-05 00:23:35 -08:00
Jeremy Allison
3d40b197b0 Add missing patch to allow smbcacls to do krb5 auth, bug #5175
from Tom Maher <tmaher@watson.org>.
Jeremy.
(This used to be commit 54ee718957)
2008-01-04 17:15:04 -08:00
Jeremy Allison
68b2965108 Fix the build.
Jeremy.
(This used to be commit 25a0084af5)
2008-01-04 13:24:24 -08:00
Jeremy Allison
9254bb4ef1 Refactor the crypto code after a very helpful conversation
with Volker. Mostly making sure we have data on the incoming
packet type, not stored in the smb header.
Jeremy.
(This used to be commit c4e5a50504)
2008-01-04 12:56:23 -08:00
Michael Adam
517ad5318d Fix spacing - spaces mixed with tabs.
Michael
(This used to be commit a4ef828102)
2008-01-04 21:16:48 +01:00
Michael Adam
dbdaa5eeec Fix a comment.
Michael
(This used to be commit fc9c3f39b5)
2008-01-04 21:09:55 +01:00
Michael Adam
dee8e32d8d Remove the word "registry" from the help output of the "net conf" command.
Michael
(This used to be commit 8d9e3e08f3)
2008-01-04 21:05:59 +01:00
Michael Adam
34fb783965 Update the introductory comment to net_conf.c to mention linbet_conf.
Michael
(This used to be commit e166b88637)
2008-01-04 21:05:59 +01:00
Michael Adam
b1472c0956 Remove the final regdb_close() from net_conf.c
This is to hide the registry from net_conf.
Right now, it does not harm if "net conf" does not close
the registry file explicitly just before exiting.
I am working out a proper way of handling open/close
operations transparently in the libnet_conf library.

Michael
(This used to be commit 790ef78944)
2008-01-04 19:52:22 +01:00
Michael Adam
2a8722d4c3 Fix the behaviour of "net conf setparm" to create the share if necessary.
This moves functionality taken away from libnet_conf_set_parameter() to the
higher level user frontend function. (Somehow I thought I had done this
already ... :-)

Michael
(This used to be commit fc0fca980f)
2008-01-04 19:49:57 +01:00
Günther Deschner
77219ddd22 Fix build warning.
Guenther
(This used to be commit a43125d9e9)
2008-01-04 17:43:23 +01:00
Michael Adam
5470f8f638 Make libnet_conf handle opening/initialization of the registry.
Open state is currently tracked by a global variable
to avoid double initialization.

Later, this can possibly be replaced by a conf-context
created by an initialization function and passed around
to the other api functions.

Michael
(This used to be commit 77713e7764)
2008-01-03 15:33:09 +01:00
Michael Adam
2476254ccd Rename libnet_smbconf_delparm() to libnet_conf_delete_parameter().
Michael
(This used to be commit 073eeca51e)
2008-01-03 14:17:49 +01:00
Michael Adam
55771b356d Rename libnet_smbconf_getparm() to libnet_conf_get_parameter().
Michael
(This used to be commit d08556dbc7)
2008-01-03 14:17:49 +01:00
Michael Adam
b9f904b59d Rename libnet_smbconf_setparm() to libnet_conf_set_parameter().
Michael
(This used to be commit e00cb415d3)
2008-01-03 14:17:49 +01:00
Michael Adam
e89411effd Rename libnet_smbconf_delshare() to libnet_conf_delete_share().
Michael
(This used to be commit 2075baf551)
2008-01-03 14:17:49 +01:00
Michael Adam
e1aa474a32 Rename libnet_smbconf_getshare() to libnet_conf_get_share().
Michael
(This used to be commit 1575612f19)
2008-01-03 14:17:49 +01:00
Michael Adam
3f3a29ed50 Rename libnet_smbconf_create_share() to libnet_conf_create_share().
Michael
(This used to be commit 6bc4ee2108)
2008-01-03 14:17:49 +01:00
Michael Adam
630de5f555 Rename libnet_smbconf_share_exists() to libnet_conf_share_exists().
Michael
(This used to be commit 3258758e5c)
2008-01-03 14:17:49 +01:00
Michael Adam
daf1a460c8 Rename libnet_smbconf_get_share_names() to libnet_conf_get_share_names().
Michael
(This used to be commit 2e4beee66b)
2008-01-03 14:17:49 +01:00
Michael Adam
90837d048b Rename libnet_smbconf_get_config() to libnet_conf_get_config().
Michael
(This used to be commit e8f7c07699)
2008-01-03 14:17:49 +01:00
Michael Adam
05ff62cf78 Rename libnet_smbconf_drop() to libnet_conf_drop().
Michael
(This used to be commit 42ae33a962)
2008-01-03 14:17:49 +01:00
Michael Adam
78acbddbd5 Happy new year again.
Michael
(This used to be commit e568f42e21)
2008-01-03 14:17:48 +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
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
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
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
Michael Adam
59128c7837 Remove list_values() from net_conf.c - it is not needed any more.
Also make libnet.c:libnet_smbconf_format_registry_value() static.
(There are nor more external callers.)

Michael
(This used to be commit ac7baa17e8)
2007-12-30 00:32:41 +01:00
Michael Adam
9c14495944 Use libnet_smbconf_get_config() in net_conf_list().
This leaves only output logic in net_conf_list().

Michael
(This used to be commit 95d9981d59)
2007-12-30 00:32:41 +01:00
Michael Adam
a6d6fbb73d Dont return count - 1 but count from libnet_smbconf_reg_get_values().
Michael
(This used to be commit ded60dec7d)
2007-12-29 17:02:27 +01:00
Michael Adam
e8cb7cecf2 Make sure libnet_smbconf_get_share_names() always lists "global" first.
And don't return count-1 but count.

Michael
(This used to be commit b7cb9b7823)
2007-12-29 17:00:27 +01:00
Michael Adam
0b7aafff11 Fix a const warning.
Michael
(This used to be commit e276e48177)
2007-12-29 13:02:22 +01:00
Michael Adam
1c03f6b608 Rename libnet_smbconf_getshares() to libnet_smbconf_get_share_names().
Michael
(This used to be commit 9b3b9aa7e1)
2007-12-29 12:55:42 +01:00
Michael Adam
2a642a6e2b Move functionality of net_conf_listshares() to libnet_conf.c
into new function libnet_smbconf_getshares().

Michael
(This used to be commit 306c7e4d9c)
2007-12-29 12:52:09 +01:00
Michael Adam
f8c39cbb7b Move functionality of net_conf_showshare() to libnet_conf.c
The functionality is moved to a new function libnet_smbconf_getshare().
This returns the parameters of the given share as two lists: the list
of parameter names and the list of matching (formatted) parameter values.

The retrieval and formatting is done in a new internal helper function
libnet_smbconf_reg_get_values() that is to become the replacement for
list_values() from net_conf.c once functionality of net_conf_list() has
been moved to libnet_conf, too.

Michael
(This used to be commit 198232bd52)
2007-12-29 12:32:16 +01:00
Michael Adam
8093a75d6f Make the main net_conf functions static in net_conf.c
Michael
(This used to be commit dd6e09a65e)
2007-12-29 02:27:20 +01:00
Michael Adam
eb356fbafc Hide the registry backend from libnet_smbconf_getparm().
Return a formatted string of the value instead.

Michael
(This used to be commit 7d0ec5bae1)
2007-12-29 02:12:33 +01:00
Michael Adam
4b75bc63bb Rename format_value() to libnet_smbconf_format_registry_value().
Michael
(This used to be commit 95d5dd9bb0)
2007-12-29 01:17:39 +01:00
Michael Adam
dfa8d9356c Move format_value() to libnet_conf.c.
Michael
(This used to be commit 3422a5048a)
2007-12-29 00:05:58 +01:00
Karolin Seeger
9dfde0ebec Improve error messages of 'net rpc user [add|delete]' commands.
Karolin
(This used to be commit 4260c79bf7)
2007-12-28 09:44:40 +01:00
Volker Lendecke
c90f731ef2 Convert pdbedit to use pdb_search_users
(This used to be commit 8a8f2583b8)
2007-12-26 18:57:15 +01:00
Volker Lendecke
5f196fafd3 Properly destroy the pdb search object
(This used to be commit 514cf53224)
2007-12-26 18:57:14 +01:00
Michael Adam
afca308742 Rename libnet_smbconf_open_basepath() to libnet_smbconf_reg_open_basepath().
Michael
(This used to be commit 4c0e7270c4)
2007-12-26 01:01:14 +01:00
Michael Adam
18ea20e19b Rename libnet_smbconf_open_path() to libnet_smbconf_reg_open_path().
Michael
(This used to be commit 4b0e636965)
2007-12-26 00:58:11 +01:00
Michael Adam
c2ab4bd705 Add two missing free-s.
Michael
(This used to be commit 4efac39c36)
2007-12-25 03:35:00 +01:00
Michael Adam
44631bfd4d Remove talloc context parameter from libnet_smbconf_delparm().
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_delparm.

Michael
(This used to be commit 16f1373938)
2007-12-25 03:34:04 +01:00
Michael Adam
726f32b672 Add a missing free.
Michael
(This used to be commit bf6031287f)
2007-12-25 03:29:41 +01:00
Michael Adam
f3b0469b4a Remove talloc context parameter from libnet_smbconf_setparm().
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_setparm.

Michael
(This used to be commit efaffefc43)
2007-12-25 03:29:05 +01:00
Michael Adam
e5a87c2543 Remove talloc context parameter from libnet_smbconf_drop().
Make use of talloc_stackframe.

Michael
(This used to be commit aaceab1153)
2007-12-25 03:05:06 +01:00
Michael Adam
2764f5a0a6 Rename drop_smbconf_internal() to libnet_smbconf_drop().
Michael
(This used to be commit 5873e6a1f8)
2007-12-25 03:01:59 +01:00
Michael Adam
8e53343a74 Move drop_smbconf_internal() to libnet_conf.c
Michael
(This used to be commit 4c2a3396bb)
2007-12-25 02:55:07 +01:00
Michael Adam
9626fffe14 Use the proper boolean constants in net_conf.c
Michael
(This used to be commit 1fe4ea63b1)
2007-12-25 02:48:45 +01:00
Michael Adam
734ddacc91 Add error reporting to net_conf_delshare().
Michael
(This used to be commit 8d02a2de61)
2007-12-25 02:42:33 +01:00
Michael Adam
86486fcc98 Simplify libnet_smbconf_delshare().
Remove talloc context parameter.
Remove d_printf error message.

Michael
(This used to be commit 870d35c048)
2007-12-25 02:37:02 +01:00
Michael Adam
9c20b9a731 Rename reg_delkey_internal() to libnet_smbconf_delshare().
Michael
(This used to be commit 7d501f0d78)
2007-12-25 02:24:39 +01:00
Michael Adam
c9f65929b7 Move reg_delkey_internal() to libnet/libnet_conf.c
Michael
(This used to be commit c1b863fd05)
2007-12-25 02:21:30 +01:00
Michael Adam
c74579f491 Make libnet_smbconf_key_exists() use talloc_stackframe().
And not pass a talloc context.

Michael
(This used to be commit 7e8451f2f0)
2007-12-24 00:53:22 +01:00
Michael Adam
8f163d5c5a Move logic of net_conf_getparm() to libnet_conf.c.
Michael
(This used to be commit d3a20c4d5a)
2007-12-24 00:18:35 +01:00
Michael Adam
d1c2280cd4 Rename libnet_reg_createkey_internal() to libnet_smbconf_reg_createkey_internal().
Michael
(This used to be commit 0e7f215f54)
2007-12-23 04:10:32 +01:00
Michael Adam
62f08d3dd9 Move net_conf_setparm() to libnet_conf.c
renaming it to libnet_smbconf_setparm()

Michael
(This used to be commit 60f49b22b5)
2007-12-23 04:10:32 +01:00
Michael Adam
31d436e54c Move reg_setvalue_internal() to libnet_conf.c
renaming it to libnet_smbconf_setvalue_internal()

Michael
(This used to be commit 7cb51a1d6d)
2007-12-23 04:10:31 +01:00
Michael Adam
b04708866f Move logic of net_smbconf_delparm() to libnet/libnet_conf.c
Logic in new function libnet_smbconf_delparm().

Michael
(This used to be commit 0cff79e355)
2007-12-23 04:10:31 +01:00
Michael Adam
ec3e8587ec Move smbconf_value_exists() to libnet/net_conf.c
renaming it to libnet_smbconf_value_exists().

Michael
(This used to be commit ba71c68445)
2007-12-23 04:10:31 +01:00
Günther Deschner
9fc2c21fa6 Fix net_dom_join & net_dom_unjoin.
Guenther
(This used to be commit 6dd17e4840)
2007-12-22 00:37:02 +01:00
Günther Deschner
dab660b9dc Move NetJoinDomain and friends to NET_API_STATUS and the static libnetapi_ctx.
Guenther
(This used to be commit e640c3a4a7)
2007-12-21 15:29:10 +01:00
Günther Deschner
41410c86cc Some libnet and netapi build fixes.
Guenther
(This used to be commit 1d47247283)
2007-12-21 15:29:10 +01:00
Günther Deschner
1b5c1ae742 Very quick conversion of net_conf functions into the libnet_conf layer.
Certainly needs cleanup later.

Guenther
(This used to be commit 2b41ac926d)
2007-12-21 15:29:09 +01:00
Volker Lendecke
e518e19bc0 Remove Get_Pwnam and its associated static variable
All callers are replaced by Get_Pwnam_alloc
(This used to be commit 735f593154)
2007-12-19 21:09:10 +01:00
Michael Adam
602bb7d766 Make usage message for net sam rights list a little more precise.
Michael
(This used to be commit d466a5136d)
2007-12-17 13:23:05 +01:00
Michael Adam
7d5415a2cc Fix flags in all callers of lookup_name() in net_sam.c.
Michael
(This used to be commit 6d0db17a9e)
2007-12-17 13:06:01 +01:00
Volker Lendecke
2e07c2ade8 s/sid_to_string/sid_to_fstring/
least surprise for callers
(This used to be commit eb523ba776)
2007-12-15 22:47:30 +01:00
Volker Lendecke
7b01537679 Replace sid_string_static with sid_string_tos
In utils/ I was a bit lazy...
(This used to be commit 60e830b0f4)
2007-12-15 22:09:36 +01:00
Volker Lendecke
54ae9dfcbc Use sid_string_talloc where we have a tmp talloc ctx
(This used to be commit 0a911d38b8)
2007-12-15 22:09:36 +01:00
Volker Lendecke
900288a2b8 Replace sid_string_static by sid_string_dbg in DEBUGs
(This used to be commit bb35e794ec)
2007-12-15 22:09:36 +01:00
Jeremy Allison
aaf05ef410 Developer doesn't cut it - need #define test for NSS_WRAPPER.
Hopefully this should fix the buildfarm.
Jeremy.
(This used to be commit 087489b7f2)
2007-12-12 18:38:52 -08:00
Jeremy Allison
e897e9c501 Only add the non-root escape on !developer.
Jeremy.
(This used to be commit a50c2d159c)
2007-12-12 18:07:02 -08:00
Jeremy Allison
61277c718e Fix the buildfarm until I figure out how to allow
smbpasswd -L for non-root on the buildfarm only.
Jeremy.
(This used to be commit 1bb5ce824f)
2007-12-12 17:56:28 -08:00
Jeremy Allison
9373e1ea90 Fix bug #3727 with patch from Steve Langasek <vorlon@debian.org>
Jeremy.
(This used to be commit 0723760ba4)
2007-12-12 17:26:49 -08:00
Günther Deschner
10f1cdc797 Some cleanups for "net dom join".
Guenther
(This used to be commit 3f426f394f)
2007-12-12 00:58:58 +01:00
Günther Deschner
0439fdd777 Replace "unknown" with access_mask when calling samr_CreateUser2().
Guenther
(This used to be commit cfc6e7a2e6)
2007-12-11 15:26:09 +01:00
Jeremy Allison
7faee02d0d Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2)
2007-12-10 11:30:37 -08:00
Volker Lendecke
d60fac2a5a Tiny simplifications
locking.c:open_read_only was unused

don't export the silly boolean flag locking_init(bool read_only)
(This used to be commit 2f3c865707)
2007-12-10 12:22:01 +01:00
Jeremy Allison
42cfffae80 Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f3936)
2007-12-07 17:32:32 -08:00
Jeremy Allison
ade51769d5 We don't need P_GSTRING or P_UGSTRING anymore.
Jeremy.
(This used to be commit 78dc756000)
2007-12-07 12:43:10 -08:00
Jeremy Allison
e2ae63bcf7 Make all the tools use the proper accessor functions.
Jeremy.
(This used to be commit 6d61bb8797)
2007-12-06 18:58:01 -08:00
Jeremy Allison
79c3aef7ea Fix typos in auth change.
Jeremy.
(This used to be commit 440e9f5b51)
2007-12-06 18:52:36 -08:00
Jeremy Allison
9fdf2d0586 Get closer to building with smbmount. Move parameter line changes
into lib/util.c
Jeremy.
(This used to be commit 6ac5d81655)
2007-12-06 18:49:39 -08:00
Jeremy Allison
1b92ea5559 Remove pstrings from client/client.c by doing a large rewrite.
Mostly compiles....
Jeremy.
(This used to be commit c87f3eba9a)
2007-12-06 17:16:33 -08:00
Karolin Seeger
bf80f40ca4 Make output of net getdomainsid more meaningful. Unify spelling of SID. Display usage if superfluous arguments are given.
Karolin
(This used to be commit cb3a2dfeb0)
2007-12-06 16:34:36 +01:00
Volker Lendecke
78c6ee0090 Remove some globals
(This used to be commit 31d0a846db)
2007-12-05 14:39:07 +01:00
Jeremy Allison
de7fd585b1 The usual !pstring...
Jeremy.
(This used to be commit b676262a78)
2007-12-04 16:56:18 -08:00
Jeremy Allison
e262c41c61 More pstring elimination.
Jeremy.
(This used to be commit c1f70793d6)
2007-12-04 16:35:24 -08:00
Jeremy Allison
3c219ce238 Remove pstrings.
Jeremy.
(This used to be commit e3c02796f8)
2007-12-04 15:45:20 -08:00
Jeremy Allison
5ea101f048 Allow STR_TERMINATE and -1 src_len for pull_ucs2_base_talloc().
Jeremy.
(This used to be commit 063358d87a)
2007-12-04 15:21:14 -08:00
Jeremy Allison
e883c7040b Remove pstr_sprintf. Replace with snprintf.
Jeremy.
(This used to be commit bc9aa72223)
2007-12-04 14:31:57 -08:00
Jeremy Allison
bb9b754605 Back to pstring removal.
Jeremy.
(This used to be commit 95842ae4e1)
2007-12-04 14:02:25 -08:00
Jeremy Allison
3ab73eab49 Gone from usershare.
Jeremy.
(This used to be commit f1555f4f0d)
2007-12-03 19:19:19 -08:00
Jeremy Allison
adf6d848de Getting to the home stretch for elimination of pstrings...
Jeremy.
(This used to be commit 0411635511)
2007-12-03 18:48:41 -08:00
Jeremy Allison
fe1a12b22f Remove pstring from clirap2 by completely rewriting the damn
thing :-). Now with added paranoia.
Jeremy.
(This used to be commit b6b5f92bc9)
2007-12-03 14:09:48 -08:00
Günther Deschner
6f1b4eb869 Fix shutdown callers.
Guenther
(This used to be commit de2fdc6b5a)
2007-12-03 18:43:19 +01:00
Günther Deschner
9ab0038348 Fix svcctl callers.
Guenther
(This used to be commit 91bf2ac1af)
2007-12-03 18:43:19 +01:00
Günther Deschner
82089a2e84 Fix winreg callers.
Guenther
(This used to be commit 677d9e6d86)
2007-12-03 18:43:19 +01:00
Günther Deschner
e9e182feda Actually implement reboot feature for net dom join/unjoin.
Guenther
(This used to be commit bbbeeba163)
2007-12-03 11:17:57 +01:00
Volker Lendecke
107c1f854d Reformatting
(This used to be commit 28c0a77ec1)
2007-12-03 10:53:29 +01:00
Günther Deschner
a43e3f98ad Add "net dom" command suite to "net".
Guenther
(This used to be commit a41f9aef84)
2007-11-30 22:25:01 +01:00
Günther Deschner
c88263ab9e Add "net dom unjoin" code.
Guenther
(This used to be commit 58d49023b9)
2007-11-30 22:25:01 +01:00
Günther Deschner
4b60045066 Add "net dom join" code.
Guenther
(This used to be commit 177dab0ce3)
2007-11-30 22:25:01 +01:00
Günther Deschner
4b9f336a62 Move param helper routines to one place.
Guenther
(This used to be commit 6bf2c8038c)
2007-11-30 22:25:01 +01:00
Jeremy Allison
f692694b99 Remove PSTRING_LEN from smbd/ nmbd/.
Remove pstring from libsmb/clidfs.c except for a nasty
hack (that will be removed when pstrings are gone from
client/).
Jeremy.
(This used to be commit cc257b71d1)
2007-11-29 17:25:41 -08:00
Jeremy Allison
d2cf97aeba Remove the explicit TALLOC_CTX * from cli_struct.
Make us very explicit about how long a talloc ctx
should last.
Jeremy.
(This used to be commit ba9e2be2b5)
2007-11-29 13:24:54 -08:00
Michael Adam
25a6a677df Allow calling "net rpc join" and "net rpc trustdom" without specifying server IP.
This was a logic bug (typo) in a call to get_pdc_ip() in net_find_server().

Michael
(This used to be commit 988c5ff3f4)
2007-11-29 15:16:45 +01:00
Jeremy Allison
6b6655edd9 Remove pstrings from everything except srv_spoolss_nt.c.
Jeremy.
(This used to be commit 0002a9e96b)
2007-11-27 14:35:30 -08:00
Volker Lendecke
1011b32678 Remove some statics
(This used to be commit 1fab16ffb8)
2007-11-27 14:18:47 +01:00
Volker Lendecke
5c6f961447 Remove a static
(This used to be commit 85a84f72ff)
2007-11-24 18:11:11 -08:00
Volker Lendecke
d2c2635a28 Make remote_password_change return malloced error strings
This fixes a segfault in smbpasswd -r
(This used to be commit 49949f0b85)
2007-11-23 13:04:50 -08:00
Volker Lendecke
450ca80b57 add talloc_stackframe() to eventlogadm
Thanks to Günther Kukkukk for noticing
(This used to be commit 9751cc222c)
2007-11-23 14:39:21 +01:00
Jeremy Allison
7ef6c19074 Remove pstrings from pam_smbpass - make local_password_change
return malloced strings.
Jeremy.
(This used to be commit f652fe2bdb)
2007-11-21 17:42:52 -08:00
Jeremy Allison
90b8a7c8fe Add talloc stackframe for ntlm_auth.c
Jeremy.
(This used to be commit 6f9c2910bd)
2007-11-20 19:17:47 -08:00
Karolin Seeger
551f9e7a6c Add error message to net rap file and net rap file user
(This used to be commit 759d6bcbec)
2007-11-19 16:42:27 +01:00
Jeremy Allison
acb829ecc3 Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy.
(This used to be commit a1725f4ff7)
2007-11-15 18:27:26 -08:00
Jeremy Allison
68be9a8200 More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
(This used to be commit 1ea3ac8014)
2007-11-15 14:19:52 -08:00
Jeremy Allison
7a3ece4145 Remove pstring from param/
This was a little tricky..... I'll watch the
build farm.
Jeremy.
(This used to be commit d6e2519c67)
2007-11-13 18:42:42 -08:00
Stefan Metzmacher
f9578af966 ndr: change NTSTAUS into enum ndr_err_code (samba3 callers)
lib/messages_local.c
rpc_client/ndr.c
smbd/notify_internal.c
utils/net_rpc_registry.c

metze
(This used to be commit c2645d2164)
2007-11-09 21:23:16 +01:00
Volker Lendecke
1a11cdf3f2 Sanitize smbcacls slightly
(This used to be commit 9c57628dbd)
2007-11-09 15:21:58 +01:00
Volker Lendecke
62b97b0156 Make base64_encode_data_blob return a talloced string
(This used to be commit 5f205ab48d)
2007-11-09 15:12:30 +01:00
Jeremy Allison
d40e47db4b Remove more fstring/pstring bad useage. Go talloc !
Jeremy.
(This used to be commit 2a0173743d)
2007-11-08 17:25:45 -08:00
Jeremy Allison
85b48d792f Ensure we null out the address correctly.
Jeremy.
(This used to be commit e1fcd851ab)
2007-11-05 23:17:19 -08:00
Michael Adam
002060855f Fix another segfault and make smbfilter run again.
This fix is not complete yet (loop after "client closed connection")
but at least it starts again...

Micheal
(This used to be commit e2ffc6053d)
2007-11-06 01:10:05 +01:00
Michael Adam
251d755e90 Fix a segfault.
Michael
(This used to be commit 98225a0752)
2007-11-06 01:10:04 +01:00
Michael Adam
ea7bfdde72 Try to fix the build. There was one forgotten caller
of receive_smb. Jeremy: please check!

Michael
(This used to be commit 1f0fcc3e4e)
2007-11-06 01:10:04 +01:00
Günther Deschner
fc22f295d0 Make sure we can read SACLs from the registry.
Guenther
(This used to be commit 62d4cce456)
2007-11-05 03:26:01 +01:00
Jeremy Allison
51a0354d75 Remove more static data from lib/util_sock.c and
callers.
Jeremy.
(This used to be commit 35aaa36f82)
2007-11-03 22:34:46 -07:00
Jeremy Allison
b04312b75d Forgot one more getnameinfo.
Jeremy.
(This used to be commit 619e33248d)
2007-11-02 12:05:17 -07:00
Jeremy Allison
e075b3692b Fix Solaris by ensuring we use the IPv4 or IPv6 length
in any getnameinfo calls.
Jeremy
(This used to be commit 4d7badb0c4)
2007-11-02 10:25:34 -07:00
Jeremy Allison
d4307679b9 Change all occurrences of zero_addr(&ss,AF_INET) to
zero_addr(&ss). All current uses were always of the
AF_INET form, so simplify the call. If in the future
we need to zero an addr to AF_INET6 this can be
done separately.
Jeremy.
(This used to be commit 2e92418a13)
2007-10-27 20:29:36 -07:00
Jeremy Allison
73eefd6b72 Fix popt bool problems (need POPT_ARG_NONE, not POPT_ARG_VALUE).
Reported by kukks - thanks !
Jeremy.
(This used to be commit 9993f8d1af)
2007-10-26 16:22:18 -07:00
Jeremy Allison
7cbfaa31d8 Fix a few more sockaddr -> sockaddr_storgage.
Jeremy.
(This used to be commit 4b3635d6bc)
2007-10-26 16:02:16 -07:00
Stefan Metzmacher
cd648750e0 one more struct in_addr => struct sockaddr_storage
jra: please check this...

metze
(This used to be commit cecc807551)
2007-10-26 16:37:32 +02:00
Jeremy Allison
42f9694139 Fixed missing in_addr -> sockaddr_storage conversion (how did
I miss this...).
Jeremy.
(This used to be commit f982774c8d)
2007-10-25 18:11:29 -07:00
Jeremy Allison
f88b7a076b This is a large patch (sorry). Migrate from struct in_addr
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
(This used to be commit 98e154c312)
2007-10-24 14:16:54 -07:00