search for: strupper

Displaying 7 results from an estimated 7 matches for "strupper".

Did you mean: stripper
2000 Jan 30
0
More checks for param/loadparm.c
...myname is not accessed through any lp_ macro. > Nicolas Williams <Nicolas.Williams@wdr.com> */ > standard_sub_basic(netbios_name); > #endif > pstrcpy((char *)parm_ptr,netbios_name); > unix_to_dos((char *)parm_ptr, True); /* FLAG_DOS_STRING --davecb */ > strupper((char *)parm_ptr); > DEBUG(4,("handle_netbios_name: set netbios name to: %s\n", > (char *)parm_ptr)); > return (True); 2132a2151,2250 > handle_netbios_aliases -- validate and insert multiple netbios-name > parameters. It's a pstring global, with the DOS_STR...
1998 Mar 12
0
Code to check Password Server Group Memberships
.../* Point to the data area of the smb packet */ p = &outbuf[smb_tpscnt + 5 * 2]; *(p++) = 0; /* Password is empty (null string) */ *(p++) = '\\'; /* setup share path \\SERVER\IPC$ */ *(p++) = '\\'; strcpy(p, pserver); strupper(p); p += strlen(p); strcpy(p, "\\IPC$"); p += 6; strcpy(p, "IPC"); send_smb(password_client,outbuf); ret = receive_smb(password_client,inbuf,5000); /* Not checking the response from the connect, but if it * failed then the tid w...
1998 Nov 24
0
source/client/client.c : redundant calls to getenv()
...if ((user=getenv("PASSWD_FD")) { get_password_file(user); got_pass = True; } else if ((user=getenv("PASSWD_FILE")) { get_password_file(user); got_pass = True; } if (*username == 0 && (user=getenv("LOGNAME"))) { pstrcpy(username,user); strupper(username); } Also, I don't understand at all the goal of the memset. In the original version, it was : memset(strchr(getenv("USER"),'%')+1,'X',strlen(password\)); thus : -get a fresh copy of the environment string "USER" (they are still two lying ar...
2003 Oct 08
4
OS/390 openssh
...); + _checkuser_struct auth_user; + char logon[9]; + char passw[9]; + char passw_expdate[11]; + char logon_expdate[11]; + char account_buffer[9]; + int ok_pw; + + /* in: */ + strncpy(logon, pw->pw_name, sizeof logon); + strupper(logon, NULL); + str_pad(logon, sizeof logon, ' '); + auth_user.username = logon; + strncpy(passw, password, sizeof passw); + strupper(passw, NULL); + str_pad(passw, sizeof passw, ' '); + auth_user.password = passw; + /* out: */ + auth_user.pw_expdate = passw_expdate; + auth...
2000 Jan 28
1
PATCH: 'source environment' param and % token subs for 'netbios name'
Attached please find unified diffs against Samba 2.0.6. I'm hoping that others will find it useful and that it may even find its way into Samba 2.0.7 This patch does two things: - Modifies the handling of the 'netbios name' parameter so that standard_sub_basic() is run on its value when the 'netbios name' parameter is processed. This has to be done this way because
2001 Mar 28
1
UTF-8 patch for Samba 2.0.7
...c smb_ucs2_t *unixcp_to_ucs2; -static uint16 *ucs2_to_unixcp; +//static smb_ucs2_t *unixcp_to_ucs2; +//static uint16 *ucs2_to_unixcp; +iconv_t unix2ucs=(iconv_t)-1, ucs2unix=(iconv_t)-1; #ifndef MAXUNI #define MAXUNI 1024 @@ -566,7 +568,14 @@ fstrcpy(upper_unix_char_set, unix_char_set); strupper(upper_unix_char_set); - return load_unicode_map(upper_unix_char_set, &unixcp_to_ucs2, &ucs2_to_unixcp); + + unix2ucs = iconv_open(upper_unix_char_set, "UCS2"); + if(unix2ucs==(iconv_t)-1) + DEBUG(0,("Conversion from %s to UCS2 is not supported\n",upper_unix_char_set...
2003 Dec 01
0
No subject
...( struct nmb_name *n, const char *name, int type) { extern pstring global_scope; memset( (char *)n, '\0', sizeof(struct nmb_name) ); StrnCpy( n->name, name, 15 ); // here, unix_to_dos calls recoding again somewhere: unix_to_dos(n->name, True); // NAME GETS RECODED TWICE! strupper( n->name ); n->name_type = (unsigned int)type & 0xFF; StrnCpy( n->scope, global_scope, 63 ); strupper( n->scope ); }; My quick-and-dirty work around was is to use my_make_nmb_name(), which just does not call unix_to_dos(), and everyone is happy :) I hope this helps. Please fi...