[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DIGITAL UNIX (FORMERLY KNOWN AS DEC OSF/1) |
Notice: | Welcome to the Digital UNIX Conference |
Moderator: | SMURF::DENHAM |
|
Created: | Thu Mar 16 1995 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 10068 |
Total number of notes: | 35879 |
DU V4.0b C2 security.
Hello all,
I have a customer who since upgrading from V3.2d1 to V4.0b is having
problems with the sia functions. Her application now coredumps. The
source code is below. (sia_ses_init)
When I tested the code it seemed to work when I was using csh but
not when I used ksh or sh and when I tuned optimization off the compile it
worked for ksh. (standard C compiler)
Any help on the would be greatly appreciated.
Thank in advance
Lance.
_____________________________________________________________________________
#include <stdio.h>
#include <sia.h>
#include <siad.h>
int check(char *user, char *password)
{
SIAENTITY *entity;
int retval;
int pass_ok = FALSE;
char *argv[2] = { "check", NULL };
printf("About to call init\n");
retval = sia_ses_init(&entity, 1, argv, NULL, user, NULL, 0, NULL);
printf("init returned %d\n", retval);
printf("About to call authent\n");
retval = sia_ses_authent(NULL, password, entity);
pass_ok = (retval == SIASUCCESS);
printf("authent returned %d\n", retval);
printf("About to call release\n");
retval = sia_ses_release(&entity);
printf("release returned %d\n", retval);
return pass_ok;
}
int main()
{
char user[80];
char password[80];
printf("Username: ");
gets(user);
printf("Password: ");
gets(password);
if (check(user, password)) {
printf("password correct\n");
}
else {
printf("password incorrect\n");
}
return 0;
}
[Posted by WWW Notes gateway]
T.R | Title | User | Personal Name | Date | Lines |
---|
8914.1 | Is the customer using DCE security? | WTFN::SCALES | Despair is appropriate and inevitable. | Fri Feb 21 1997 10:48 | 4 |
| WAG: does it work better if you compile it with -D_REENTRANT (or -threads)?
Webb
|
8914.2 | -threads worked | NETRIX::"[email protected]" | | Mon Feb 24 1997 17:52 | 5 |
| Thanks -threads worked around the problem.
Lance.
[Posted by WWW Notes gateway]
|
8914.3 | Design "bug" in SIA... | WTFN::SCALES | Despair is appropriate and inevitable. | Tue Feb 25 1997 10:56 | 7 |
| There should be a bit of the documentation, or a STARS article, or SOMETHING
which points out that SIA when configured to use DCE causes the application
to become multithreaded (like it or not!), and this demands that the calling
application be properly built...
Webb
|