Günther Deschner
f6ba7333ab
net: fix debuglevel handling.
...
Kai, that one actually needs to stay a global external variable in order to
support debuglevel definition only on the commandline for net.
Guenther
2008-06-05 18:49:21 +02:00
Günther Deschner
60bce92574
net: fix popt context memleak.
...
Guenther
2008-06-04 02:44:24 +02:00
Kai Blin
25d4c6f692
net: Split out "net share"
2008-05-20 14:28:01 +02:00
Kai Blin
3f10527f79
net: Split out "net afs"
2008-05-20 14:27:56 +02:00
Kai Blin
0f5ebdf0bc
net: Move more utility functions into net_util.c
2008-05-20 14:27:53 +02:00
Kai Blin
84a116be9c
net: Split out "net file"
2008-05-20 14:27:47 +02:00
Kai Blin
3ddd9c09e3
net: Split out "net group"
2008-05-20 14:27:40 +02:00
Kai Blin
4ca08a5acc
net: Split out "net user"
2008-05-20 14:27:27 +02:00
Kai Blin
d0237a7368
net: Move "net join" handling into a separate file.
2008-05-20 14:27:24 +02:00
Kai Blin
a8b567aac3
net: Use true/false instead of True/False.
2008-05-20 14:27:08 +02:00
Kai Blin
1e9319cf88
net: Remove globals
2008-05-10 09:22:27 +02:00
Kai Blin
4dcce8b653
net: Some whitespace clean-up.
2008-05-10 09:22:19 +02:00
Günther Deschner
8a5fadf6a1
net: Add libnetapi context to net's impressive list of globals.
...
Guenther
2008-04-21 20:21:40 +02:00
Günther Deschner
020b1e6431
net/libnetapi: Include netapi headers early and free on exit.
...
Guenther
2008-04-16 02:16:08 +02:00
Michael Adam
3250068eb9
net: add a "net registry" subcommand to locally access the registry.
...
The interface is like that of net rpc registry.
Access is direct local access to the registry tdb through reg_api.
Michael
2008-03-28 16:19:35 +01:00
Volker Lendecke
70b33397ba
Fix Coverity ID 479
2008-03-23 18:28:23 +01:00
Jeremy Allison
7b0826aeec
Fix args to cli_force_encryption.
...
Jeremy.
2008-01-05 00:41:48 -08:00
Jeremy Allison
757653966f
Add general '-e' option to enable smb encryption
...
on tools.
Jeremy.
2008-01-05 00:23:35 -08:00
Volker Lendecke
eb523ba776
s/sid_to_string/sid_to_fstring/
...
least surprise for callers
2007-12-15 22:47:30 +01:00
Jeremy Allison
52dc5eaef2
Remove the char[1024] strings from dynconfig. Replace
...
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
2007-12-10 11:30:37 -08:00
Karolin Seeger
cb3a2dfeb0
Make output of net getdomainsid more meaningful. Unify spelling of SID. Display usage if superfluous arguments are given.
...
Karolin
2007-12-06 16:34:36 +01:00
Volker Lendecke
28c0a77ec1
Reformatting
2007-12-03 10:53:29 +01:00
Günther Deschner
a41f9aef84
Add "net dom" command suite to "net".
...
Guenther
2007-11-30 22:25:01 +01:00
Michael Adam
988c5ff3f4
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
2007-11-29 15:16:45 +01:00
Jeremy Allison
2e92418a13
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.
2007-10-27 20:29:36 -07:00
Jeremy Allison
98e154c312
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.
2007-10-24 14:16:54 -07:00
Jeremy Allison
793a9d24a1
Fix the popt / bool issues. Some places we used BOOL
...
where we meant int. Fix this. Thanks to metze for
pointing this out.
Jeremy.
2007-10-19 11:38:36 -07:00
Jeremy Allison
f35a266b3c
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Jeremy Allison
3f6bd0e1ec
Add start of IPv6 implementation. Currently most of this is avoiding
...
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
2007-10-10 18:25:16 -07:00
Volker Lendecke
5ae4b27398
r25481: Fix some typos, don't panic as non-root on net getdomainsid
...
Thanks to Karolin Seeger <ks@sernet.de>
2007-10-10 12:31:07 -05:00
Michael Adam
46093004a7
r25197: Change net_make_ipc_connection() and net_make_ipc_connection_ex() to
...
return NTSTATUS to allow for better error propagation.
Michael
2007-10-10 12:30:50 -05:00
Rafal Szczesniak
86af9fedad
r24853: Rename function as Jerry asked.
...
s/net_use_upn_machine_account/net_use_krb_machine_account/
rafal
2007-10-10 12:30:28 -05:00
Michael Adam
c97600b96f
r24824: Create an initial talloc stackframe for the net binary.
2007-10-10 12:30:25 -05:00
Rafal Szczesniak
30d99d8ac3
r24789: Add implementation of machine-authenticated connection to netlogon
...
pipe used when connecting to win2k and newer domain controllers. The
server may be configured to deny anonymous netlogon connections which
would stop domain join verification step. Still, winnt domains require
such smb sessions not to be authenticated using machine credentials.
Creds employed in smb session cannot have a username in upn form, so
provide the separate function to use machine account.
rafal
2007-10-10 12:30:21 -05:00
Günther Deschner
7e2fb14d6e
r23968: Harmonize net's password prompts.
...
Guenther
2007-10-10 12:28:50 -05:00
Andrew Tridgell
b0132e94fc
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
2007-10-10 12:28:20 -05:00
Michael Adam
df30f8d5c2
r23379: Whitespace cosmetics, to reduce irritating diffs...
...
Michael
2007-10-10 12:23:11 -05:00
Volker Lendecke
9de16f25c1
r22135: Check in most of Michael Adam's net conf utility. A good share of this patch
...
is moving functions around to fix some linker dependencies for the registry.
Michael, I've renamed your auth_utils2.c to token_utils.c.
Thanks!
Volker
2007-10-10 12:19:16 -05:00
Volker Lendecke
fd0ee6722d
r21831: Back out r21823 for a while, this is going into a bzr tree first.
...
Volker
2007-10-10 12:18:37 -05:00
Volker Lendecke
f94e5af72e
r21823: Let secrets_store_machine_password() also store the account name. Not used
...
yet, the next step will be a secrets_fetch_machine_account() function that
also pulls the account name to be used in the appropriate places.
Volker
2007-10-10 12:18:36 -05:00
Volker Lendecke
af3308ce5a
r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes winbind
...
who did not run the idle events to drop ldap connections.
Volker
2007-10-10 12:18:33 -05:00
Simo Sorce
50cd8bffee
r20116: Start merging in the work done to create the new idmap subsystem.
...
Simo.
2007-10-10 12:16:25 -05:00
Jeremy Allison
78b14de27a
r19424: Protect against username == NULL
...
Jeremy.
2007-10-10 12:15:34 -05:00
Jeremy Allison
a31bbbaee1
r19422: Doh ! Put the krb5 user@realm code in the right place.
...
Jeremy.
2007-10-10 12:15:34 -05:00
Günther Deschner
d573e64781
r17086: Re-add ability to contact remote domain controllers with the "net ads"
...
toolset.
In 3.0.23 all those commands have been limited to the DC of our primary
domain. Also distinguish calls that may go to remote DCs (search, info,
lookup, etc.) from those that should only go to our primary domain
(join, leave, etc.).
Guenther
2007-10-10 11:38:10 -05:00
Volker Lendecke
1d928f783a
r17078: Ouch....
2007-10-10 11:38:10 -05:00
Volker Lendecke
8c6088f2bd
r17077: Activate RPC-SAMBA3-GETUSERNAME in the build farm
2007-10-10 11:38:10 -05:00
Jeremy Allison
9dafb7f48c
r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
...
to do the upper layer directories but this is what
everyone is waiting for....
Jeremy.
2007-10-10 11:19:14 -05:00
Simo Sorce
60d4aabc32
r15971: Obey the manpage description and make changesecretpw accept a password via stdin
2007-10-10 11:17:15 -05:00