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