Jelmer Vernooij
027f6ada63
s4/net: Use d_printf consistently when reporting errors.
2009-12-29 16:26:20 +01:00
Jelmer Vernooij
732a7630e9
Use CommandError exception to deal with problems during net commands.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
eaf4a9afb2
s4/net: Make pwsettings a net subcommand.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
8c19cd2dea
netcmd: Add some basic tests.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
9e603dfb95
s4/net: Support parsing arguments in Python commands.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
9b1a210311
net: Support usage/help of subcommands implemented in Python.
2009-12-29 16:26:19 +01:00
Jelmer Vernooij
c064549e2e
net: Support implementing subcommands in python.
2009-12-29 16:26:18 +01:00
Stefan Metzmacher
8b68349442
s4:auth: add auth_get_server_info_principal() prototype to auth.h
...
metze
2009-12-29 12:13:30 +01:00
Stefan Metzmacher
27349a68ea
s4:auth: make auth_challenge_may_be_modified() public
...
metze
2009-12-29 12:13:29 +01:00
Stefan Metzmacher
af25fb55c0
s4:auth: remove autogenerated auth/ntlm/auth_proto.h
...
metze
2009-12-29 12:13:23 +01:00
Stefan Metzmacher
4afb211f4f
s3:ntlmssp: remove unused p24 variable from ntlmssp_sign_init()
...
metze
2009-12-29 08:46:19 +01:00
Stefan Metzmacher
9d5f41ca01
s3:ntlmssp: move some indentation in ntlmssp_sign.c
...
metze
2009-12-29 08:46:18 +01:00
Stefan Metzmacher
05f7a86a99
s3:ntlmssp: remove unused ntlmssp_stored_response()
...
metze
2009-12-29 08:46:12 +01:00
Stefan Metzmacher
7cff7d937e
s3:ntlmssp: remove unused ref_count from ntlmssp_state
...
metze
2009-12-29 08:19:01 +01:00
Stefan Metzmacher
e78558a45b
s3:ntlmssp: fix whitespace in ntlmssp.h
...
metze
2009-12-29 08:19:00 +01:00
Stefan Metzmacher
5541a91dff
s3:ntlmssp: fix spelling
...
metze
2009-12-29 08:19:00 +01:00
Stefan Metzmacher
5ff127b641
s3:ntlmssp: rename NTLM_MESSAGE_TYPE into ntlmssp_message_type
...
metze
2009-12-29 08:19:00 +01:00
Stefan Metzmacher
8ab62799ed
s4:ntlmssp: fix whitespaces in ntlmssp.h
...
metze
2009-12-29 08:18:52 +01:00
Volker Lendecke
e5fbff0963
s3: Check for lp_winbind_trusted_domains_only in wb_gettoken()
...
This avoids one walk of the domain list
2009-12-28 23:35:07 +01:00
Volker Lendecke
c0289d63c3
s3: Move a lp_winbind_trusted_domains_only() check to wb_getgrsid()
...
winbindd_getgrgid was not protected by this.
2009-12-28 23:20:02 +01:00
Volker Lendecke
b8fcba9cb8
s3: Pass netr_DomainTrustList instead of names and sids through (*trusted_domains)
2009-12-28 15:54:13 +01:00
Volker Lendecke
0aa8946ce0
s3: Simplify winbindd_ads.c:trusted_domains()
...
No real code change, this just removes an indentation by turning
if ( NT_STATUS_IS_OK(result) && trusts.count) {
into
if (!NT_STATUS_IS_OK(result)) {
return result;
}
if (trusts.count == 0) {
return NT_STATUS_OK;
}
2009-12-28 15:28:43 +01:00
Volker Lendecke
2c49678ce5
s3: Remove some unused code
...
Watch the #if 0 -- we never stored this in the cache anymore
2009-12-28 14:59:46 +01:00
Volker Lendecke
d53cfb7675
s3: Simplify winbindd_list_trusted_domains() slightly
2009-12-28 14:59:45 +01:00
Volker Lendecke
2daa084da4
s3: Simplify "setup_domain_child" slightly
2009-12-28 14:59:45 +01:00
Jelmer Vernooij
72d93599d9
python: Remove sys.path line rather than updating it when installing to python system path.
2009-12-27 17:30:59 +01:00
Volker Lendecke
ff0f8bd9e6
s3:winbind Make the normal client exit message a bit more understandable
2009-12-26 18:00:47 +01:00
Volker Lendecke
0a6a13dd07
s3: Fix a typo found by Matthias Dieter Wallnöfer <mdw@samba.org> -- thanks :-)
2009-12-26 15:21:09 +01:00
Volker Lendecke
7e66145560
s3: Fix a bogus uninitialized variable warning
2009-12-26 12:26:07 +01:00
Volker Lendecke
634d084517
s3: Replace IS_DOMAIN_OFFLINE by a function
2009-12-26 12:26:07 +01:00
Volker Lendecke
50e5f9dc51
s3: Fix some nonempty blank lines
2009-12-26 12:26:06 +01:00
Volker Lendecke
03617df24d
s3: winbindd_cli_state->getgrent_state is no longer used
2009-12-26 12:26:06 +01:00
Volker Lendecke
b911a7b2d4
s3: getgrent_state has been replaced by grent_state
2009-12-26 12:26:06 +01:00
Jelmer Vernooij
ef453c63af
py_net/libnet: Remove C++-style comments, add more error checking, move
...
initialization of dcerpc subsystem to libnet.
2009-12-25 14:48:45 +01:00
Kamen Mazdrashki
33699bb1be
s4-libnet: Simple test for net.SetPassword() python binding
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-12-25 14:15:53 +01:00
Kamen Mazdrashki
20c7c27322
s4-libnet: Python binding for libnet_SetPassword()
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-12-25 14:15:42 +01:00
Kamen Mazdrashki
f03e88fa4b
s4-net: Fix 'talloc_free with references ...' error
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-12-25 14:15:31 +01:00
Stefan Metzmacher
078482ad0e
s4:auth: change auth_check_password_send/recv to tevent_req
...
metze
2009-12-24 17:38:34 +01:00
Stefan Metzmacher
577857d351
s4:gensec: change gensec_update_send/recv to tevent_req
...
metze
2009-12-24 17:38:34 +01:00
Stefan Metzmacher
5126b52810
s4:kdc: use the remote and local address from the stream_connection struct
...
metze
2009-12-24 17:38:33 +01:00
Stefan Metzmacher
500f55ca92
s4:smbd: hold tsocket_addresses on the stream_connection
...
metze
2009-12-24 17:38:33 +01:00
Stefan Metzmacher
4e2da423de
s4:smb_server: fix mixing socket_address and tsocket_address
...
metze
2009-12-24 17:38:33 +01:00
Stefan Metzmacher
d3ee0f021b
s4:lib/socket: add socket_get_{remote|local}_addr() to get a tsocket_address instead of a socket_address
...
metze
2009-12-24 17:38:33 +01:00
Stefan Metzmacher
445baf53a9
s4:lib/socket: add helpers functions to convert between socket_address and tsocket_address
...
metze
2009-12-24 17:38:32 +01:00
Stefan Metzmacher
17c804a675
tsocket: only copy the specific part of sockaddr*
...
This makes sure we fill the unspefic bytes with 0
and have zero termination for sockaddr_un.
metze
2009-12-24 17:38:29 +01:00
Stefan Metzmacher
4784c8c3be
tsocket: allow AF_UNIX sockaddrs smaller than sizeof(sockaddr_un)
...
This is needed as getpeername() truncates the length to 2 if the
peer socket has no name.
metze
2009-12-24 17:38:04 +01:00
Volker Lendecke
96207912cb
s3: Remove unused delete_negative_conn_cache()
2009-12-24 15:24:35 +01:00
Volker Lendecke
ffab1a2318
s3: Remove unused flush_negative_conn_cache()
2009-12-24 15:24:35 +01:00
Volker Lendecke
53bf5f0064
s3: Remove some unnecessary variables from libsmb/conn_cache.c
2009-12-24 15:24:35 +01:00
Volker Lendecke
a3f43e3d86
s3: Fix a comment in conn_cache.c
2009-12-24 15:24:35 +01:00