Kevin,
If you haven't yet accomplished this task -- this code was developed for
various Speedware product integration's with Vesoft customers.
> ----------
> From: Stephen Watson
> Sent: Monday, January 4, 1999 9:25 AM
> To: 'Dean, Charles A'
> Subject: RE: VECHECKLOGON converted to C
>
> Hi Charlie,
>
> it's a little late for Christmas (you sent the email on Dec 18th right
> after I left for holidays) but better late than never?
>
> I removed all the EZR related stuff, but here is the essential part of the
> code:
>
> /* Vesoft stuff... */
> short nVeChkMode = 1, nDx;
> union {
> short Array[128];
> char Work[256];
> } VeChkWork;
> union {
> short Array[128];
> char Full[256];
> struct {
> char Sess[16],
> User[16],
> Acct[16],
> Grp[16],
> Fill[14],
> TermPass[8];
> short PassNum;
> char Password[80];
> } In;
> } VeChkInput;
> union {
> short Array[384];
> char Full[768];
> struct {
> char Status[30],
> Fill[738];
> } Out;
> } VeChkOut;
>
> /* Initialize */
> for (nDx = 0; nDx < 128; nDx ++)
> VeChkWork.Array[nDx] = VeChkInput.Array[nDx] = 0;
> for (nDx = 0; nDx < 384; nDx ++)
> VeChkOut.Array[nDx] = 0;
> memset(VeChkInput.In.Sess, ' ', sizeof(VeChkInput.In.Sess));
> memset(VeChkInput.In.Password, ' ', sizeof(VeChkInput.In.Password));
> memset(VeChkInput.In.User, ' ', sizeof(VeChkInput.In.User));
> memset(VeChkInput.In.Grp, ' ', sizeof(VeChkInput.In.Grp));
> memset(VeChkInput.In.Acct, ' ', sizeof(VeChkInput.In.Acct));
> memset(VeChkInput.In.TermPass, ' ', sizeof(VeChkInput.In.TermPass));
>
> /* Fill in User, Password, Group, etc. here */
>
> VECHECKLOGON(nVeChkMode, VeChkWork.Array,
> VeChkInput.Array, VeChkOut.Array);
>
> if (strncmp(VeChkOut.Out.Status, " ", 18) != 0 &&
> strncmp(VeChkOut.Out.Status, "OK ", 3) != 0)
> {
> printf(pFile, "ERROR - Login failed Security/3000 check (%.30s).",
> VeChkOut.Out.Status);
> }
>
> ----------
> From: Dean, Charles A[SMTP:[log in to unmask]]
> Sent: Friday, December 18, 1998 5:55 PM
> To: 'Steve Watson'
> Subject: FW: VECHECKLOGON converted to C
>
> You interested at all in extending some holiday cheer?
>
> ----------
> From: Newman, Kevin:
> Reply To: Newman, Kevin:
> Sent: Friday, December 18, 1998 4:32 PM
> To: [log in to unmask]
> Subject: VECHECKLOGON converted to C
>
> Has anyone with (or without for that matter!) the Security/3000 package,
> written a C program to call the VECHECKLOGON in order to validate the
> username.accountname/password on the system?
>
> I'm looking in order to integrate APACHE and Security/3000 so that the
> protected directories on the HP are protected with the same
> username/password as the normal information on the box.
>
> Kevin
>
>
>
|