search for: ptr_diff

Displaying 18 results from an estimated 18 matches for "ptr_diff".

2020 May 14
0
open 2nd pdf on dfs share with Acrobat Reader not possible
...ere. + */ + + e = strchr(&s[1], ':'); + if (e == NULL) { + n = strlen(s); + } else { + n = PTR_DIFF(e, s); + } + nfname = talloc_strndup_append(nfname, s, n); + if (nfname == NULL) { + return NT_STATUS_NO_MEMORY; + } +...
1998 Apr 21
0
Patching tcpdump-smb to deal with hyperlong packet reports
...hese reports is in the function nbt_tcp_print in print-smb.c (with this extract from the patch file tcpdump-3.2.1-smb-diffs) + case 0: + data = fdata(data,"NBT Session Packet\nFlags=[rw]\nLength=[rd]\n",data+4); + if (memcmp(data,"\377SMB",4)==0) { + if (nbt_len>PTR_DIFF(maxbuf,data)) + printf("WARNING: Short packet. Try increasing the snap length (%d)\n", + PTR_DIFF(maxbuf,data)); + print_smb(data,maxbuf>data+nbt_len?data+nbt_len:maxbuf); + } else { + printf("Session packet:(raw data?)\n"); + } + break;...
2002 Mar 15
0
logon home with ldap under win98
...**********************/ + *rparam_len = 6; *rparam = REALLOC(*rparam,*rparam_len); *************** *** 2521,2527 **** --- 2548,2559 ---- SIVAL(p,usri11_auth_flags,AF_OP_PRINT); /* auth flags */ SIVALS(p,usri11_password_age,-1); /* password age */ SIVAL(p,usri11_homedir,PTR_DIFF(p2,p)); /* home dir */ + /* MS: take home dir from passdb if found */ + if ( logon_home_frompassdb == False ) { pstrcpy(p2, lp_logon_home()); + } else { + pstrcpy(p2, logon_home); + } standard_sub_conn(conn, p2); p2 = skip_string(p2,1); SIVAL(p,usri11_parms,PTR_DIFF(p2,...
2007 Nov 16
1
3.0.27a out monday.
Just spoke to Jerry, we'll be doing a 3.0.27a on Monday to fix a regression that broke smbfs mounts from Linux. Sorry for the problem. Jeremy.
2005 Jan 19
1
cannot bind when doing a browser sync
...a domain master browser, and host B as a local master browser. This works fine, until they try to sync the browse list. They register with each other correctly because nmbd/nmbd_sendannounce.c's browse_sync_remote is binding to the LAN address: send_mailslot(True, BROWSE_MAILSLOT, outbuf,PTR_DIFF(p,outbuf), global_myname(), 0x0, "*", 0x0, addr, FIRST_SUBNET->myip, DGRAM_PORT); So I have "remote browse sync" set to the other hosts's LAN address, because the source address must local host's LAN address (FIRST_SUBNET->myip). I've verifi...
2005 Jun 27
0
samba 2.2.11 pass auth to MS SQL7
...) process_logon_packet: Logon from 10.0.0.3: code = 0x12 [2005/05/31 17:49:37, 3] nmbd/nmbd_processlogon.c:process_logon_packet(210) process_logon_packet: SAMLOGON sidsize 24, len = 112 [2005/05/31 17:49:37, 3] nmbd/nmbd_processlogon.c:process_logon_packet(217) process_logon_packet: len = 112 PTR_DIFF(q, buf) = 104 [2005/05/31 17:49:37, 3] nmbd/nmbd_processlogon.c:process_logon_packet(237) process_logon_packet: SAMLOGON sidsize 24 ntv 1 [2005/05/31 17:49:37, 3] nmbd/nmbd_processlogon.c:process_logon_packet(246) process_logon_packet: SAMLOGON user KHKSERVER$ [2005/05/31 17:49:37, 3] nmbd/nmbd...
2005 Dec 13
0
Can't see shares on a server member
...gon_packet: Logon from 10.244.142.1: code = 0x12 [Tue Dec 13 17:09:08 2005 , 5] nmbd/nmbd_processlogon.c:process_logon_packet(315) process_logon_packet: SAMLOGON sidsize 24, len = 92 [Tue Dec 13 17:09:08 2005 , 5] nmbd/nmbd_processlogon.c:process_logon_packet(322) process_logon_packet: len = 92 PTR_DIFF(q, buf) = 84 [Tue Dec 13 17:09:08 2005 , 3] nmbd/nmbd_processlogon.c:process_logon_packet(347) process_logon_packet: SAMLOGON sidsize 24 ntv 1 [Tue Dec 13 17:09:08 2005 , 5] nmbd/nmbd_processlogon.c:process_logon_packet(356) process_logon_packet: SAMLOGON user U86F$ [Tue Dec 13 17:09:08 2005 ,...
2004 Oct 05
2
Can join domain; can't logon
...process_logon_packet: Logon from 10.9.1.97: code = 0x12 [2004/10/05 11:14:48, 5] nmbd/nmbd_processlogon.c:process_logon_packet(315) process_logon_packet: SAMLOGON sidsize 24, len = 116 [2004/10/05 11:14:48, 5] nmbd/nmbd_processlogon.c:process_logon_packet(322) process_logon_packet: len = 116 PTR_DIFF(q, buf) = 108 [2004/10/05 11:14:48, 3] nmbd/nmbd_processlogon.c:process_logon_packet(347) process_logon_packet: SAMLOGON sidsize 24 ntv 11 [2004/10/05 11:14:48, 5] nmbd/nmbd_processlogon.c:process_logon_packet(356) process_logon_packet: SAMLOGON user GUINEA-PIG$ [2004/10/05 11:14:48, 5] nmbd/nm...
2005 May 30
2
smbclient hangs
Hello, I'm having problems with using smbclient on a win2k share. The server runs samba 3.0.14a on Solaris 9. I want to tar the whole directory of a share. Into a file on the server What I found out so far is, that it works until a maximum file count of 35. It is not size dependant but if the file count in that share exceeds more than 35 the smbclient hangs for ever and with the time is
2005 Jun 28
1
Fw: Missing files on Windows client side
...can finish on any (first) match. +1471 * This speeds up large directory searches. JRA. +1472 */ +1473 +1474 if(got_exact_match) +1475 finished = True; +1476 +1477 space_remaining = max_data_bytes - PTR_DIFF(p,pdata); +1478 DEBUG(5,("call_trans2findfirst - space remaining %d numentries %d\n", space_remaining, numentries)); +1479 } at line 1478 we added an extra debug line to see what's going on. with every file the space_remaining is going down from 16384 (m...
2003 Apr 13
1
disabling version number
Hi there, is there any possibility of disabling Samba's version number output (e.g. with smbclient) without having to manually edit it in the source code? I don't want anyone to see my Samba's version number... Thanks Florian
2009 Dec 07
1
Joining winXP SP3 in samba 3.3.9 + openldap backend, why does't work?
...packet: Logon from 192.168.1.56: code = 0x12 [2009/12/07 04:58:40, 5] nmbd/nmbd_processlogon.c:process_logon_packet(354) process_logon_packet: LOGON_SAM_LOGON_REQUEST sidsize 0, len = 71 [2009/12/07 04:58:40, 5] nmbd/nmbd_processlogon.c:process_logon_packet(361) process_logon_packet: len = 71 PTR_DIFF(q, buf) = 63 [2009/12/07 04:58:40, 3] nmbd/nmbd_processlogon.c:process_logon_packet(386) process_logon_packet: LOGON_SAM_LOGON_REQUEST sidsize 0 ntv 11 [2009/12/07 04:58:40, 5] nmbd/nmbd_processlogon.c:process_logon_packet(395) process_logon_packet: LOGON_SAM_LOGON_REQUEST user [2009/12/07 04...
2013 Jul 15
0
Problem logon on WinXP : returning logon svr \\EASYBOURSE domain EB code 13 token=ffff
...ket: Logon from 192.168.0.89: code = 0x12 [2013/07/15 16:39:26, 5] nmbd/nmbd_processlogon.c:354(process_logon_packet) process_logon_packet: LOGON_SAM_LOGON_REQUEST sidsize 24, len = 92 [2013/07/15 16:39:26, 5] nmbd/nmbd_processlogon.c:361(process_logon_packet) process_logon_packet: len = 92 PTR_DIFF(q, buf) = 84 [2013/07/15 16:39:26, 3] nmbd/nmbd_processlogon.c:386(process_logon_packet) process_logon_packet: LOGON_SAM_LOGON_REQUEST sidsize 24 ntv 11 [2013/07/15 16:39:26, 5] nmbd/nmbd_processlogon.c:395(process_logon_packet) process_logon_packet: LOGON_SAM_LOGON_REQUEST user *[2013/07/1...
2002 Dec 29
0
Slow performance
...8:18, 3, pid=1570, effective(0, 0), real(0, 0)] nmbd/nmbd_processlogon.c:process_logon_packet(210) process_logon_packet: SAMLOGON sidsize 0, len = 53 [2002/12/28 14:18:18, 3, pid=1570, effective(0, 0), real(0, 0)] nmbd/nmbd_processlogon.c:process_logon_packet(217) process_logon_packet: len = 53 PTR_DIFF(q, buf) = 45 [2002/12/28 14:18:18, 3, pid=1570, effective(0, 0), real(0, 0)] nmbd/nmbd_processlogon.c:process_logon_packet(237) process_logon_packet: SAMLOGON sidsize 0 ntv 11 [2002/12/28 14:18:18, 3, pid=1570, effective(0, 0), real(0, 0)] nmbd/nmbd_processlogon.c:process_logon_packet(246) proc...
2003 Feb 12
2
rsync & ldap authentication
...oadparm.c rsync-2.4.6-ldapauth/loadparm.c --- rsync-2.4.6/loadparm.c Wed Sep 6 04:46:43 2000 +++ rsync-2.4.6-ldapauth/loadparm.c Tue Dec 12 10:45:01 2000 @@ -44,6 +44,12 @@ */ #include "rsync.h" + +#ifdef WITH_LDAP +#include <lber.h> +#include <ldap.h> +#endif + #define PTR_DIFF(p1,p2) ((ptrdiff_t)(((char *)(p1)) - (char *)(p2))) #define strequal(a,b) (strcasecmp(a,b)==0) #define BOOLSTR(b) ((b) ? "Yes" : "No") @@ -96,6 +102,11 @@ char *pid_file; int syslog_facility; char *socket_options; + char *ldap_server; + int ldap_port; + char *ldap_root;...
2003 May 03
0
Storing rsync secrets in LDAP
...c rsync-2.5.0-patched/loadparm.c --- rsync-2.5.0-ori/loadparm.c Fri Nov 30 01:21:08 2001 +++ rsync-2.5.0-patched/loadparm.c Wed Dec 12 15:56:07 2001 @@ -49,6 +49,12 @@ */ #include "rsync.h" + +#ifdef WITH_LDAP +#include <lber.h> +#include <ldap.h> +#endif + #define PTR_DIFF(p1,p2) ((ptrdiff_t)(((char *)(p1)) - (char *)(p2))) #define strequal(a,b) (strcasecmp(a,b)==0) #define BOOLSTR(b) ((b) ? "Yes" : "No") @@ -101,6 +107,11 @@ char *pid_file; int syslog_facility; char *socket_options; + char *ldap_server; + int...
2004 Sep 21
2
login from XP
Hello, I'm having a problem logging in to the Samba domain from an XP machine. The machine is added to the domain but after reboot I can't login. I've done the signorseal registry hack but I'm still not able to login. The error I get when logging in is this: "Windows cannot connect to the domain, either because the domain controller is down or otherwise unavailable, or
2002 Nov 01
0
The domain is not disposable!
...process_logon_packet: Logon from 10.113.160.99: code = 0x12 [2002/10/25 15:21:38, 3] nmbd/nmbd_processlogon.c:process_logon_packet(210) process_logon_packet: SAMLOGON sidsize 0, len = 59 [2002/10/25 15:21:38, 3] nmbd/nmbd_processlogon.c:process_logon_packet(217) process_logon_packet: len = 59 PTR_DIFF(q, buf) = 51 [2002/10/25 15:21:38, 3] nmbd/nmbd_processlogon.c:process_logon_packet(237) process_logon_packet: SAMLOGON sidsize 0 ntv 11 [2002/10/25 15:21:38, 3] nmbd/nmbd_processlogon.c:process_logon_packet(246) process_logon_packet: SAMLOGON user [2002/10/25 15:21:38, 3] nmbd/nmbd_processlogo...