summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* r25407: Revert Longhorn join patch as it is not correct for the 3.2 tree.Gerald Carter2007-09-284-77/+11
| | | | | | The translate_name() used by cli_session_setup_spnego() cann rely Winbindd since it is needed by the join process (and hence before Winbind can be run).
* r25403: grab latest changes form 3.2 tree in preparation for release of ↵Gerald Carter2007-09-284-11/+77
| | | | 3.2.0pre1
* r25387: Sync with 3.2.0 svn treeGerald Carter2007-09-272-1/+16
|
* r25032: Contact an off site DC if non is available on site.Lars Müller2007-09-081-9/+16
|
* r24980: - Use the formal syntax for calling functions through pointers. ↵Derrell Lipman2007-09-062-94/+98
| | | | | | | | | I've wanted to make this change for ages, but now with the issue of "open" requiring it, this is the time to just do all of them. Derrell
* r24968: Fwd port "open" patchSimo Sorce2007-09-052-3/+3
|
* r24865: - Correct failure of libsmbclient against a version of Windows found ↵Derrell Lipman2007-09-011-24/+2
| | | | | | | | | | | | | | | | | | | | on a NAS device. The device resets a NBT connection on port 139 when it receives a NetBIOS keepalive request. That request should be supported when NetBIOS is in use; Windows is behaving badly. libsmbclient needs a way to determine if a connection is still alive, and was using a NetBIOS keepalive request if port 139 was in use (on the assumption that it was probably NBT), and getpeername() when port 139 was not being used (assuming naked transport). This patch simplifies the code by exclusively using getpeername() to check whether a connection is still alive. The NetBIOS keepalive request is optional anyway (with preference being given to using TCP mechanisms for the same purpose), so this should be both simpler and more reliable. Derrell
* r24797: Fix logic in dsgetdcname().Günther Deschner2007-08-301-1/+1
| | | | Guenther
* r24782: Fix C++ warningsVolker Lendecke2007-08-291-3/+4
|
* r24776: Remove accidentially commited flag checks.Günther Deschner2007-08-291-8/+0
| | | | Guenther
* r24750: Fix one more caller of name_resolve_bcast().Michael Adam2007-08-281-1/+3
| | | | Michael
* r24749: Increase debuglevel.Günther Deschner2007-08-281-1/+1
| | | | Guenther
* r24742: Add experimental DsGetDcName() call (will be used by krb5 locator ↵Günther Deschner2007-08-281-0/+955
| | | | | | | | for fine grained KDC DNS queries). Guenther
* r24739: With resolve_ads() allow to query for PDCs as well.Günther Deschner2007-08-281-6/+20
| | | | | | Also add dns query functions to find GCs and DCs by GUID. Guenther
* r24737: Remove older TODO: Convert internal_resolve_name() and friends to ↵Günther Deschner2007-08-282-97/+136
| | | | | | NTSTATUS. Guenther
* r24660: Merge the inbuf/outbuf changesVolker Lendecke2007-08-252-10/+24
|
* r24653: Some trivial 3_2->3_2_0 mergesVolker Lendecke2007-08-242-4/+5
|
* r24546: Fix some C++ and type-punned warningsVolker Lendecke2007-08-191-1/+1
|
* r24544: Apply missing portion of correction for bug 4750Derrell Lipman2007-08-181-0/+5
|
* r24465: - Sort ACEs according to http://support.microsoft.com/kb/269175 so thatDerrell Lipman2007-08-151-10/+72
| | | | | | | Windows Explorer doesn't complain about the order (and so that they get interpreted properly). Derrell
* r24460: - Removing all ACEs was causing removal of the DACL entirely. ↵Derrell Lipman2007-08-151-4/+0
| | | | | | | | | | | | | | | Win2000 ignored the request, presumably due to the PROTECTED flag not being set. Setting that flag (in make_sec_desc()) has much wider implications than just to libsmbclient, so instead of modifying that, we'll remove security descriptors by setting the number of ACEs to zero. At some point, we might want to look into whether we should actually be setting the PROTECTED flag in the DACL. Reference http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/distrib/dsce_ctl_qxju.mspx?mfr=true Derrell
* r24411: - I got tricked by function naming. Contrary to what seemed obvious ↵Derrell Lipman2007-08-141-4/+0
| | | | | | | | | | | | | to me, prs_mem_free() is not the function to be called to free memory allocated by prs_alloc_mem(). I've added a comment so others may not get bitten too. - Remove incorrect memory free calls added yesterday to replace SAFE_FREE. The memory is actually now on a talloc context, so gets freed by the caller when that context is freed. We don't need to free it iternally. Derrell
* r24389: - ACL retrieval provided incomplete information because the buffer ↵Derrell Lipman2007-08-141-9/+22
| | | | | | | | | | | | | | | | | | | | | | | pointer was incremented too far in some circumstances. In these cases, only the first of multiple concatenated strings would be seen. - Working on bug 4649 pertaining to delete an ACL, this fixes the reported crash. It appears to have been an incomplete switchover from malloc to talloc, as the memory was still being freed with SAFE_FREE. Deleting ACLs still doesn't work. Although a valid request is sent to the server and a SUCCESS response is returned, the method that's used in libsmbclient for deleting ACLs seems to be incorrect. In looking at the samba4 torture tests, it appears that we should be turning on the INHERIT flag if we want to delete the ACL. (I could use some assistance on the proper flags to send, from anyone familiar with this stuff.) - Apply patch from SATOH Fumiyasu to fix bug 4750. smbc_telldir_ctx() was not returning a value useful to smbc_lseekdir_ctx(). Derrell
* r24281: Fix bug found by Herb. The vuid entry in the cli_state structure getsJeremy Allison2007-08-081-0/+4
| | | | | | | | | | left as nonzero as returned by the failed cli_session_setup_spnego. When we then try to authenticate as the user in cli_session_setup this returns an error "Bad userid" (as seen in wireshark). "We should only leave cli->vuid != 0 on success. Looks like it's getting set in the cli_session_setup_blob_receive() call and not cleared again on error." Jeremy.
* r24043: merge from SAMBA_3_0 (r22092-r22093):Stefan Metzmacher2007-07-252-10/+17
| | | | | | | | | | | | - make spnego_parse_auth_response() more generic and not specific for NTLMSSP - it's possible that the server sends a mechOID and authdata if negResult != SPNEGO_NEG_RESULT_INCOMPLETE, but we still force the mechOID to be present if negResult == SPNEGO_NEG_RESULT_INCOMPLETE - send also the correct OID_KERBEROS5 not only the broken OID_KERBEROS_OLD one. metze
* r23991: Some constVolker Lendecke2007-07-221-1/+1
|
* r23986: Some constVolker Lendecke2007-07-211-5/+13
|
* r23894: merge from SAMBA_3_2:Stefan Metzmacher2007-07-161-0/+4
| | | | | | | add dummy callbacks for LDAP SASL wrapping, they're not used yet... metze
* r23889: merge from SAMBA_3_2:Stefan Metzmacher2007-07-161-2/+2
| | | | | | | move elements belonging to the current ldap connection to a substructure. metze
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-07-105-10/+5
|
* r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell2007-07-102-4/+2
|
* r23790: LGPLv3+ conversion for our LGPLv2+ library codeAndrew Tridgell2007-07-101-1/+1
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-1043-86/+43
|
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-0949-49/+49
| | | | Jeremy.
* r23741: Combined merge of 23726, 23727 and 23731 from 3_0:Volker Lendecke2007-07-073-11/+17
| | | | | | | | | | | | | | | | | | | | | 23726: Explicitly pass down the FLAGS2 field to srvstr_pull_buf. The next checkin will pull this up to srvstr_get_path. At that point we can get more independent of the inbuf, the base_ptr in pull_string will only be used to satisfy UCS2 alignment constraints. 23731: Explicitly pass down FLAGS2 to srvstr_get_path. Next step is to remove the bug that in the trans2 code we use the inbuf as the base pointer to decide whether we need ucs2 alignment where we need to use the beginning of the params buffer 23731: Forgot one reference to inbuf
* r23723: Alexander Larsson pointed me at a missing mapping in clierror.cSimo Sorce2007-07-051-1/+3
| | | | | | | When renaming a file across 2 filesystem a samba server returns NT_STATUS_NOT_SAME_DEVICE but thius is not translated to EXDEV, and the generic EINVAL is returned instead. This should fix it, Jeremy or Derrel please check if this is ok.
* r23710: Remove some code duplication, we do have a random number generatorVolker Lendecke2007-07-041-7/+3
|
* r23651: Always, always, always compile before commit...Günther Deschner2007-06-291-1/+1
| | | | Guenther
* r23650: Fix remaining callers of krb5_kt_default().Günther Deschner2007-06-291-3/+3
| | | | Guenther
* r23649: Fix the build (by moving smb_krb5_open_keytab() to clikrb5.c).Günther Deschner2007-06-291-1/+137
| | | | Guenther
* r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().Günther Deschner2007-06-271-1/+1
| | | | Guenther
* r23624: Merge dos error code from samba4 (returned from dfs_Enum against ↵Günther Deschner2007-06-271-0/+1
| | | | | | | | w2k3 as soon as a one DFS_VOLUME_FLAVOR_AD_BLOB dfsroot exists). Guenther
* r23609: Removing more redundant codepaths out of smb_krb5_renew_ticket(). Günther Deschner2007-06-261-38/+26
| | | | | | Thanks Volker for the pointer hint :) Guenther
* r23588: Some more cleanups and error checks in the krb5 renew function.Günther Deschner2007-06-221-6/+12
| | | | Guenther
* r23587: Cleanup redundant code in the krb5 renew function.Günther Deschner2007-06-221-23/+16
| | | | Guenther
* r23586: Fix heimdal path in the krb5 renew routine when we need to compose ↵Günther Deschner2007-06-221-1/+5
| | | | | | | | the tgt string ourselves. Guenther
* r23582: Fix event based krb5 ticket refreshing in winbindd.Günther Deschner2007-06-221-5/+5
| | | | | | | We were incorrectly using the renew_till timestamp instead of the renewed ticket's endtime to calculate the next refreshing date. Guenther
* r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.Jeremy Allison2007-06-204-28/+35
| | | | | Long overdue fix.... Jeremy.
* r23511: Merge branches/SAMBA_3_0@23510James Peach2007-06-151-8/+15
| | | | | Tidy calls to smb_panic by removing trailing newlines. Print the failed expression in SMB_ASSERT.
* r23347: Fix Coverity 363. Dead code elimination.Jeremy Allison2007-06-041-7/+3
| | | | Jeremy.