Günther Deschner
9813fe2b04
s3-rpc_cli: pass down ndr_interface_table to cli_rpc_pipe_open_noauth().
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-08-05 10:30:00 +02:00
Luk Claes
764b5e5610
s3:libsmb: get rid of cli_negprot
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:49 +02:00
Andrew Bartlett
40715e1251
s3-librpc: pass struct ndr_interface_table down to cli_pipe_open_generic/spnego()
...
This allows the target service (as determined from the IDL) to be
passed to GSSAPI (rather than the current, incorrect, "cifs").
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18 16:23:24 +01:00
Andrew Bartlett
b89a0439b3
s3-librpc Rename and rework cli_rpc_pipe_open_ntlmssp() to be generic
...
This also includes renaming the helper function
rpccli_ntlmssp_bind_data, and allows this function to operate on any
gensec-supplied auth type.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11 09:04:41 +01:00
Stefan Metzmacher
ee36217c40
s3:libsmb: make use of cli_tree_connect()
...
metze
2011-11-24 19:02:32 +01:00
Björn Baumbach
948e010f20
s3-libsmb/passchange.c: remove some cli_nt_error() calls
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 16 20:36:11 CET 2011 on sn-devel-104
2011-11-16 20:36:10 +01:00
Stefan Metzmacher
1b04e54b57
s3:libsmb: s/Undefined/SMB_SIGNING_DEFAULT/
...
metze
2011-11-03 16:55:13 +01:00
Stefan Metzmacher
3f00cce9b3
s3:libsmb: pass max_protocol to cli_negprot()
...
metze
2011-09-15 10:25:17 +02:00
Stefan Metzmacher
3e227d8544
s3:libsmb: pass CLI_FULL_CONNECTION_* flags via cli_connect_nb()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 8 10:21:50 CEST 2011 on sn-devel-104
2011-09-08 10:21:50 +02:00
Volker Lendecke
06eec02e74
s3: Use cli_connect_nb in remote_password_change
2011-05-28 20:50:10 +02:00
Volker Lendecke
1173a4f83d
s3: Fix some nonemtpy blank lines
2011-05-28 20:50:09 +02:00
Björn Baumbach
6552ed64c1
s3-libsmb/passchange.c: Fix cli_errstr() usage (part of bug #7864 )
...
Convert cli_errstr() to nt_errstr()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-05-18 10:50:57 +02:00
Günther Deschner
27022587e3
s3-libsmb: move protos to libsmb/proto.h
...
Guenther
2011-05-06 16:37:18 +02:00
Günther Deschner
2473c2fb1b
s3-libsmb: put namequery headers to nmblib.h
...
We might find a better name for it and merge other namequery related things as
well here...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
7a91282c9f
s3-libsmb: only include rap client when needed.
...
Guenther
2011-03-15 21:16:35 +01:00
Andreas Schneider
bf18403c81
s3-rpc_client: Move client pipe functions to own header.
2011-02-28 18:15:04 +01:00
Günther Deschner
ae36783c7b
s3-passdb: include samr.h where needed.
...
Guenther
2010-08-06 15:43:37 +02:00
Günther Deschner
66adb84e46
s3-build: only use ndr_samr.h where needed.
...
Guenther
2010-05-28 02:49:36 +02:00
Günther Deschner
3f2719c202
s3-rpc_client: move protos to cli_samr.h
...
Guenther
2010-05-18 21:42:32 +02:00
Günther Deschner
e92f9c57b4
s3-libsmb: fix typo in remote_password_change().
...
Guenther
2010-05-14 13:23:33 +02:00
Jeremy Allison
5363d6e62c
Ensure all callers to the rpc_client/cli_pipe functions correctly
...
initialize return variables.
Jeremy.
2009-11-12 13:56:33 -08:00
Günther Deschner
d3af0346c8
s3-dcerpc: use dcerpc_AuthLevel and remove duplicate set of flags.
...
Guenther
2009-09-15 17:49:34 +02:00
Günther Deschner
032e01e7c1
s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_spnego_ntlmssp and cli_rpc_pipe_open_ntlmssp.
...
Guenther
2009-09-11 09:59:04 +02:00
Simo Sorce
aec03eda93
s3-smbpasswd: Fix Bug #6584 : allow DOM\user when changing passwords remotely.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-09-02 10:17:14 +02:00
Jeremy Allison
5d05d22999
Added prefer_ipv4 bool parameter to resolve_name().
...
W2K3 DC's can have IPv6 addresses but won't serve
krb5/ldap or cldap on those addresses. Make sure when
we're asking for DC's we prefer IPv4.
If you have an IPv6-only network this prioritizing code
will be a no-op. And if you have a mixed network then you
need to prioritize IPv4 due to W2K3 DC's.
Jeremy.
2009-07-28 11:51:58 -07:00
Karolin Seeger
095f66b0ed
s3/libsmb: Fix typo in error message.
...
Thanks to Herb Lewis <hlewis [at] panasas.com> for noticing!
Karolin
2009-06-17 10:25:11 +02:00
Karolin Seeger
f92269a6ce
s3/libsmb: Fix debug message.
...
This fixes bug #6472 .
Karolin
Signed-off-by: Volker Lendecke <vl@samba.org>
2009-06-15 08:43:43 +02:00
Jeremy Allison
f48a345e4a
Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and
...
password talloc'ed strings within the cli_struct.
Jeremy.
2009-03-13 17:49:24 -07:00
Volker Lendecke
0bd92281e4
Make cli_tcon_andx async
2009-01-30 12:47:59 +01:00
Jeremy Allison
bb23f5725f
Fix more asprintf and "ignoring return code" warnings from gcc 4.3.
...
Jeremy.
2008-12-31 16:30:11 -08:00
Volker Lendecke
bb8ca0fdbf
Make cli_negprot return NTSTATUS instead of bool
2008-12-19 10:28:30 +01:00
Volker Lendecke
767130ebec
Fix some nonempty blank lines
...
(This used to be commit 9336cd1c5e
)
2008-09-01 23:32:42 +02:00
Volker Lendecke
e0be03d8d5
Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit a13f059955
)
2008-07-20 17:37:11 +02:00
Volker Lendecke
1335da2a7c
Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9abc9dc4dc
)
2008-07-20 17:37:11 +02:00
Günther Deschner
059293cbf4
rename rpccli_samr_chgpasswd_user to rpccli_samr_chgpasswd_user2.
...
Guenther
(This used to be commit 5b4650d56c
)
2008-06-25 23:58:50 +02:00
Volker Lendecke
e73e8297f5
Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_struct
...
(This used to be commit 99fc3283c4
)
2008-04-20 14:08:16 +02:00
Volker Lendecke
b46d340fd5
Refactoring: Make struct rpc_pipe_client its own talloc parent
...
(This used to be commit a6d74a5a56
)
2008-04-20 00:12:52 +02: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
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
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
Jeremy Allison
30191d1a57
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.
(This used to be commit f35a266b3c
)
2007-10-18 17:40:25 -07:00
Andrew Tridgell
5e54558c6d
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
...
(This used to be commit b0132e94fc
)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
(This used to be commit 407e6e695b
)
2007-10-10 12:28:20 -05:00
Jeremy Allison
ce02d0dfcb
r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.
...
Long overdue fix....
Jeremy.
(This used to be commit 073fdc5a58
)
2007-10-10 12:23:28 -05:00
Jeremy Allison
f8fc3f9158
r19577: Fix from Nils Nordman for bug #4085 . Thanks !
...
Jeremy.
(This used to be commit 3b5ab8ab82
)
2007-10-10 12:15:42 -05:00
Volker Lendecke
b29915d611
r17571: Change the return code of cli_session_setup from BOOL to NTSTATUS
...
Volker
(This used to be commit 94817a8ef5
)
2007-10-10 11:38:39 -05:00
Jeremy Allison
fbdcf2663b
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.
(This used to be commit 9dafb7f48c
)
2007-10-10 11:19:14 -05:00
Gerald Carter
0af1500fc0
r13316: Let the carnage begin....
...
Sync with trunk as off r13315
(This used to be commit 17e63ac4ed
)
2007-10-10 11:06:23 -05:00
Volker Lendecke
ba611cb036
r13211: Fix remote password changing if password must change is set
...
The problem was that the ntlmssp bind silently failed in that case, we have to
do it anonymously. Or does anybody have a better idea?
Give a better error message if something else is wrong with the account.
Volker
(This used to be commit 0e24c701ce
)
2007-10-10 11:06:18 -05:00
Gerald Carter
54abd2aa66
r10656: BIG merge from trunk. Features not copied over
...
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
(This used to be commit 939c3cb5d7
)
2007-10-10 11:04:48 -05:00