summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb: Attempt to fix bug 6665Volker Lendecke2009-09-031-0/+6
| | | | | | Before the async libsmb rewrites, we sent tid==0 on negprot. With the rewrite, we send 0xffff. This *should* not matter, but this is one difference in the sniffs I see.
* s3-smbpasswd: Fix Bug #6584: allow DOM\user when changing passwords remotely.Simo Sorce2009-09-021-3/+16
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-ntlmssp: use generated ntlmssp code for debugging purpose.Günther Deschner2009-08-281-0/+69
| | | | Guenther
* s3-ntlmssp: add NDR helper routines for ntlmssp.Günther Deschner2009-08-282-0/+189
| | | | Guenther
* s3-ntlmssp: use interface constants in TargetInfo blob.Günther Deschner2009-08-281-5/+5
| | | | Guenther
* s3-ntlmssp: use NTLMSSP headers from IDL and remove duplicate constants.Günther Deschner2009-08-281-16/+14
| | | | Guenther
* s3-ntlmssp: remove trailing whitespace.Günther Deschner2009-08-272-125/+125
| | | | Guenther
* s3-credentials: remove unused code.Günther Deschner2009-08-271-293/+0
| | | | Guenther
* s3/debug: make SPENGO OID list appear under one debug headerSteven Danneman2009-08-261-1/+4
|
* s3-netlogon: let get_md4pw() return a struct samr_Password.Günther Deschner2009-08-261-3/+1
| | | | | | (in preparation of credential merge). Guenther
* Add some const to dsgetdcnameVolker Lendecke2009-08-251-5/+5
|
* s3:dsgetdcname: Fix a crash in dsgetdcnameVolker Lendecke2009-08-201-0/+2
| | | | | | | When returning NT_STATUS_OK we can't leave *info == NULL, this crashes in is_closest_site called from dsgetdcname(). Signed-off-by: Günther Deschner <gd@samba.org>
* s3:dsgetdcname: Inline dsgetdcname_cache_refreshVolker Lendecke2009-08-201-26/+7
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* Fix Red Hat bugzilla bug : https://bugzilla.redhat.com/show_bug.cgi?id=516165Jeremy Allison2009-08-191-1/+1
| | | | | | | | | | nautilus fails to copy files from an SMB share. This is a show-stopper for 3.4.1 (I'll open a Samba.org bug). Although gnome-vfs is doing *incredibly* stupid things by asking for a read size of 65535 - this translates on the wire to a 65534 byte read followed by a 1 byte read. Please send this back to the gnome developers that they will ge horrid on the wire performance for this. Jeremy.
* Rename ASN1_BITFIELD to ASN1_BIT_STRING.Kouhei Sutou2009-08-111-1/+1
| | | | X.690 uses "BIT STRING" not "BIT FIELD".
* Unable to browse DFS when using kerberosBo Yang2009-08-071-8/+14
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* s3: Remove invalid constantMatthias Dieter Wallnöfer2009-07-311-1/+0
|
* (Hopefully) fix the problem Kai reported withJeremy Allison2009-07-281-2/+3
| | | | | | net ads leave and IPv6. Ensure all DC lookups prefer IPv4. Jeremy.
* Added prefer_ipv4 bool parameter to resolve_name().Jeremy Allison2009-07-283-9/+62
| | | | | | | | | | 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.
* Fix a valgrind error in cli_ctemp_doneVolker Lendecke2009-07-271-1/+3
| | | | | | | | | For performance reasons cli_smb_recv does not make copies of the buffers we received from the client, so both "vwv" and "bytes" vanish with TALLOC_FREE(subreq). I know this is a bit counter-intuitive, but I think in this case it's justified not to make copies. Comments?
* Make the smbd VFS typesafeVolker Lendecke2009-07-241-3/+3
|
* Make cli_send_mailslot() static. Preparing to do away with unexpected.tdb....Jeremy Allison2009-07-201-2/+1
| | | | Jeremy.
* More conversions of NULL -> talloc_autofree_context()Jeremy Allison2009-07-163-19/+24
| | | | | so we at least know when we're using a long-lived context. Jeremy.
* Replace more long-lived contexts with talloc_autofree_context().Jeremy Allison2009-07-161-1/+1
| | | | Jeremy.
* s3:libsmb: we need to include "includes.h" as first header to let code build ↵Stefan Metzmacher2009-07-151-1/+1
| | | | | | | | on all platforms This should fix the Tru64 build. metze
* Make cli_unlock and cli_unlock64 async. Fix POSIX lock test.Jeremy Allison2009-07-151-64/+206
| | | | Jeremy.
* Consolidate string and data_blob routines in gencacheVolker Lendecke2009-07-151-8/+7
|
* Remove gencache_init/shutdownVolker Lendecke2009-07-155-93/+0
| | | | | gencache_get/set/del/iterate call gencache_init() internally anyway. And we've been very lazy calling gencache_shutdown, so this seems not really required.
* Fix some nonempty blank linesVolker Lendecke2009-07-151-21/+20
|
* Remove gencache_[un]lock_keyVolker Lendecke2009-07-151-6/+0
|
* Make cli_posix_lock/unlock asynchronous.Jeremy Allison2009-07-131-58/+215
| | | | Jeremy.
* s3: QNX doesn't know uint - replace with uint_tBjörn Jacke2009-07-071-4/+4
|
* Fix bug #6496 - MS-DFS: cannot follow multibyte char link name.SATOH Fumiyasu2009-06-301-14/+38
| | | | | | | | | consumed_ucs is the number of bytes of the UCS2 path consumed not counting any terminating null. We need to convert back to unix charset and count again to get the number of bytes consumed from the incoming path.
* s3/libsmb: Fix typo in error message.Karolin Seeger2009-06-171-1/+1
| | | | | | Thanks to Herb Lewis <hlewis [at] panasas.com> for noticing! Karolin
* s3/libsmb: Fix debug message.Karolin Seeger2009-06-151-1/+1
| | | | | | | | This fixes bug #6472. Karolin Signed-off-by: Volker Lendecke <vl@samba.org>
* Make ctemp async. Fix the test to pass against W2K3.Jeremy Allison2009-06-101-36/+135
| | | | Jeremy.
* Make cli_ftruncate async. Also add a simple test.Jeremy Allison2009-06-052-73/+117
| | | | Jeremy.
* clikrb5: Prefer krb5_free_keytab_entry_contents to krb5_kt_free_entry.Jelmer Vernooij2009-06-041-3/+8
| | | | | Both functions exist in MIT Kerberos >= 1.7, but only krb5_free_keytab_entry_contents has a prototype.
* Fix bug #6419 - smbclient -L 127.0.0.1" displays "netbios name" instead of ↵Jeremy Allison2009-06-011-3/+26
| | | | | | | | "workgroup" Unify the handling of the sessionsetup parsing so we don't get different results when parsing a guest reply than an ntlmssp reply. Jeremy.
* Make cli_nt_delete_on_close() async.Jeremy Allison2009-05-291-0/+130
| | | | Jeremy.
* libsmbclient: make SMBC_module_terminate() static.Michael Adam2009-05-291-1/+1
| | | | Michael
* s3/getdcname: Fix 'net' crash.Kumar Thangavelu2009-05-291-2/+2
| | | | | | | | 'net' command crashed when attempting to join a domain. This occurred in a very specific case where the DC had multiple IPs and one of the IPs was invalid. Signed-off-by: Volker Lendecke <vl@samba.org>
* Make cli_posix_chown()/cli_posix_chmod() async.Jeremy Allison2009-05-281-47/+213
| | | | Jeremy.
* Make cli_posix_stat() async.Jeremy Allison2009-05-281-52/+143
| | | | Jeremy.
* Make getfacl async.Jeremy Allison2009-05-281-40/+130
| | | | Jeremy.
* Add cli_posix_readlink() and a torture test for it.Jeremy Allison2009-05-271-1/+183
| | | | Jeremy.
* Add aync POSIX hardlink and symlink and torture test for them.Jeremy Allison2009-05-271-151/+300
| | | | | Missing call cli_readlink() is next. Jeremy.
* Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke2009-05-263-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
* Add "err_on_readability" to writev_sendVolker Lendecke2009-05-241-2/+2
| | | | | | A socket where the other side has closed only becomes readable. To catch errors early when sitting in a pure writev, we need to also test for readability.
* Make cli_posix_open() and cli_posix_mkdir() async.Jeremy Allison2009-05-201-56/+217
| | | | Jeremy.