search for: fstrcpy

Displaying 20 results from an estimated 28 matches for "fstrcpy".

Did you mean: strcpy
1998 Apr 23
0
string overflow by 37 in fstrcpy
Hi folks, I got the most interesting error in my logs. Anyone care to enlighten me what ERROR: string overflow by 37 in fstrcpy means. as well is there anyway to make samba log to syslog log facility? I'd like to redirect my samba server's logs to a central logging facility and cannot b/c of the local log storage. any ideas?? -sv
2004 Jul 06
3
bug in parsing the 'username map' in 3.0.5pre1
Hi Jerry et al, the parsing of the 'username map' file seems to be broken in 3.0.5pre1 and a few earlier releases. The '!' at the beginning of a line is ignored. Something like !lp = lp !chbeyer = chbeyer !guest = guest nobody = * doesn't work anymore :-( from the man page: [ snip ] If any line begins with an '!' then the processing will stop
1998 Jun 15
0
Username map issue with 1.9.18p8
...pfile) return False; if (!*user) @@ -82,8 +81,6 @@ DEBUG(4,("Scanning username map %s\n",mapfile)); - depth++; - while((s=fgets_slash(buf,sizeof(buf),f))!=NULL) { char *unixname = s; char *dosname = strchr(unixname,'='); @@ -132,8 +129,6 @@ */ fstrcpy(last_from,user); fstrcpy(last_to,user); - - depth--; return False; } -------------------end patch--------------------------- -- -------------------------------------------------------- Buying an operating system without source is like buying a self-assembly Space Shuttle with no instr...
2000 Jan 04
0
two-level getgrent bug in samba-2.0.6 (PATCH#11)
...+ + safe_strcpy(member, gptr->gr_mem[i], sizeof(pstring) - copied_len - 1); + copied_len += member_len; + member += copied_len; + } else { + *member = '\0'; + } + } + + endgrent(); + + member = member_list; + while (*member) { static fstring name; - fstrcpy(name,*member); + fstrcpy(name,member); if (user_ok(name,snum) && password_ok(name,password,pwlen,NULL)) { endgrent(); return(&name[0]); } - member++; + + DEBUG(10,("validate_group = member = %s\n", member)); + + member += strlen(membe...
2002 Aug 10
1
Samba 2.2.x PDC code small corrections
...mr_nt.c @@ -227,7 +227,7 @@ static_map[0].gid = (gid_t)-1; sid_copy(&static_map[0].sid, &global_sam_sid); - sid_append_rid(&static_map[1].sid, DOMAIN_GROUP_RID_ADMINS); + sid_append_rid(&static_map[0].sid, DOMAIN_GROUP_RID_ADMINS); static_map[0].sid_name_use = SID_NAME_DOM_GRP; fstrcpy(static_map[0].nt_name, "Domain Admins"); fstrcpy(static_map[0].comment, "Administrators for the domain"); So before "Domains Admins" had bad domain sid. Full patches are there http://www.mif.vu.lt/~rolnas/samba/. I use them half year without problems. Rolandas Nauj...
2003 May 09
2
patch for 2.2 to correctly detect WinXP and Win2K2 client arch types
...ile: /data/cvs/samba/source/smbd/reply.c,v retrieving revision 1.240.2.132 diff -u -r1.240.2.132 reply.c --- source/smbd/reply.c 9 Apr 2003 22:49:49 -0000 1.240.2.132 +++ source/smbd/reply.c 9 May 2003 21:26:55 -0000 @@ -765,7 +765,7 @@ } username_str = smb_buf(inbuf)+smb_apasslen; - fstrcpy( native_lanman, skip_string(username_str, 3)); + fstrcpy( native_lanman, skip_string(username_str, 4)); /* * we distinguish between 2K and XP by the "Native Lan Manager"
2002 Nov 08
4
How to Refresh jobs in samba queues ??
Hi all, I have working properly a print server with samba-2.2.6 and using the printing system lprng. I have just the following problem, when I open the window queue to see the jobs in it from Win2K and WinNT workstation the queues are not refreshing, I have to push F5 key continously to refresh the queue jobs information. Is there a way in samba or windows (I don't know where is the
2004 Jan 30
0
[PATCH] Group mapping primary group SID update
.../ + if(!pdb_setsampwent(True)) { + DEBUG(0,("update_users_primgroup_sid: Cannot open password database.\n")); + return False; + } + + while (NT_STATUS_IS_OK(pdb_init_sam(&sam_pwent)) && pdb_getsampwent(sam_pwent)) { + fstrcpy(usrname,pdb_get_username(sam_pwent)); + if(!(pass = Get_Pwnam(usrname))) { + DEBUG(0,("update_users_primgroup_sid: Cannot find Unix account for %s.\n", usrname)); + return False; + } + + if ((pass->pw...
2004 May 26
2
duplicate domains in browse list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, i recently upgraded some of my servers from 3.0.2a to 3.0.4 after the upgrade my browselist shows duplicate entries for the domains. one domains is managed by a samba PDC(providing WINS too) and two samba BDC's. the other domains are managed by one samba PDC. 'smbclient -N -L <WINS_SERVER>' shows: - --- Workgroup
2006 Jul 13
2
Kerberos Keytab Code Update in 3.0.23
First thing - I'd like to say a big "THANK YOU" to the developers. I just upgraded to samba-3.0.23 and I've noticed an alarming issue with respect to my configuration. I've been using the built-in keytab management and it looks like the updated code no longer creates the userPrincipal in Active Directory. Whether this is an issue for others or not, it would be nice to have
2019 Feb 22
0
winbind causing huge timeouts/delays since 4.8
...ions - but really don't want to point to one or the other just want to solve an issue we hit in our environment. Anyhow i did some more patch testing and found two more ways to solve our issues instead of adding the line "return false;": 1. replace the patched line with this one: fstrcpy(domain, namespace); so in our setup domain would be set to namespace which is is set to 2. don't use the patch added via Bug 13503 at all So for me it looks the issue is caused somehwere later in code, when function parse_domain_user sets namespace to something different than domain - in...
2000 Feb 18
0
Different Domain Login.
...OW is my origional post to samba-ntdom@samba.org FOLLOWING ARE MY DIFFS: -- smbd/reply.c -- # diff smbd/reply.c.orig smbd/reply.c 787a788,794 > /* Added by Ryan Wyler (ryan@nhorizon.net) */ > if(*lp_defaultauthdomain) { > if(strequal(lp_workgroup(), domain)) { > fstrcpy(domain,lp_defaultauthdomain()); > } > } > -- param/loadparm.c -- # diff param/loadparm.c.orig param/loadparm.c 122a123 > char *szDefaultAuthDomain; 540a542 > {"default authentication domain", P_USTRING, P_GLOBAL, &Globals.szDefaultAuthDomain, NULL...
2000 Feb 18
0
Different Domain Login. UPDATED
...OW is my origional post to samba-ntdom@samba.org FOLLOWING ARE MY DIFFS: -- smbd/reply.c -- # diff smbd/reply.c.orig smbd/reply.c 787a788,794 > /* Added by Ryan Wyler (ryan@nhorizon.net) */ > if(*lp_defaultauthdomain) { > if(strequal(lp_workgroup(), domain)) { > fstrcpy(domain,lp_defaultauthdomain()); > } > } > -- param/loadparm.c -- # diff param/loadparm.c.orig param/loadparm.c 122a123 > char *szDefaultAuthDomain; 540a542 > {"default authentication domain", P_USTRING, P_GLOBAL, &Globals.szDefaultAuthDomain, NULL...
2003 Feb 21
1
PATCH: downloading drivers from Solaris [was Re: So SAMBA no longer ...]
...1]; char* ptr = NULL; int i; - char *PrinterKey = "PrinterDriverData"; + fstring PrinterKey; + UNISTR2 uni_keys; + int enum_key_len; DEBUG(4,("_spoolss_enumprinterkey\n")); unistr2_to_dos(key, &q_u->key, sizeof(key) - 1); + ZERO_STRUCTP(PrinterKey); + fstrcpy( PrinterKey, "PrinterDriverData" ); + + /* add space for 2 terminating NULLs */ + + enum_key_len = strlen( PrinterKey ) + 2; + + /* * we only support enumating all keys (key == "") * Of course, the only key we support is the "PrinterDriverData" @@ -7889,22 +7...
2019 Feb 22
6
winbind causing huge timeouts/delays since 4.8
On Fri, 22 Feb 2019 16:40:46 +0100 Alexander Spannagel via samba <samba at lists.samba.org> wrote: > Am 22.02.19 um 15:42 schrieb Rowland Penny via samba: > > On Fri, 22 Feb 2019 15:35:53 +0100 > > Ralph Böhme via samba <samba at lists.samba.org> wrote: > > > >> Hi, > >> > >> On Fri, Feb 22, 2019 at 01:59:15PM +0100, Alexander Spannagel
2018 Jun 21
0
[Announce] Samba 4.7.8 Available for Download
....36 - improve documentation of tevent_queue_add_optimize_empty() - add tevent_queue_entry_untrigger() * BUG 13292: winbind: Use one queue for all domain children. * BUG 13293: Minimize the lifetime of winbindd_cli_state->{pw,gr}ent_state. * BUG 13294: winbind should avoid using fstrcpy(domain->dcname,...) on a char *. * BUG 13295: The winbind parent should find the dc of a foreign domain via the primary domain. * BUG 13400: nsswitch: Fix memory leak in winbind_open_pipe_sock() when the privileged pipe is not accessable. * BUG 13427: Fix broken server si...
2018 Jun 21
0
[Samba] [Announce] Samba 4.7.8 Available for Download
....36 - improve documentation of tevent_queue_add_optimize_empty() - add tevent_queue_entry_untrigger() * BUG 13292: winbind: Use one queue for all domain children. * BUG 13293: Minimize the lifetime of winbindd_cli_state->{pw,gr}ent_state. * BUG 13294: winbind should avoid using fstrcpy(domain->dcname,...) on a char *. * BUG 13295: The winbind parent should find the dc of a foreign domain via the primary domain. * BUG 13400: nsswitch: Fix memory leak in winbind_open_pipe_sock() when the privileged pipe is not accessable. * BUG 13427: Fix broken server si...
2019 Feb 22
1
winbind causing huge timeouts/delays since 4.8
...want to point to one or the other just want to solve an issue we hit > in our environment. > > Anyhow i did some more patch testing and found two more ways to solve > our issues instead of adding the line "return false;": > 1. replace the patched line with this one: > fstrcpy(domain, namespace); > so in our setup domain would be set to namespace which is is set > to 2. don't use the patch added via Bug 13503 at all > > So for me it looks the issue is caused somehwere later in code, when > function parse_domain_user sets namespace to something di...
1999 Sep 21
0
FW: Kerberos 5 with Samba, Can you help?
...*******************************************************************/ + +#ifdef KRB5_AUTH +pstring mappedfrom_user=""; +#endif + BOOL map_username(char *user) { static BOOL initialised=False; @@ -67,6 +72,10 @@ if (strequal(user,last_to)) return False; + +#ifdef KRB5_AUTH + fstrcpy(mappedfrom_user, user); /* save kerberos principal name */ +#endif if (strequal(user,last_from)) { DEBUG(3,("Mapped user %s to %s\n",user,last_to)); -------------- next part -------------- Richard Kandarian http://www.lanl.gov/cgi-bin/fonelink.pl/085598 UNIX is software. M$ Win...
2008 Oct 22
1
BUG: Bad passwords from Vampire / NT migration
> 3. The only evidence of any problem from the vampire command is the > events logged on the PDC, and the invalid passwords. I tried > deleting the trust account on the PDC and rejoining several times, > with Samba on, off, and nmbd on and off. The result is always the > same. The bad password hashes are always the same for each account. > If I change a password on the PDC