Novell Home

TID100915 (ICON002) - LoginToFileServer returns error 255 (0xff)

From Developer Community

The API LoginToFileServer allows you to login to a file server in bindery mode.

The documenation for the API explains very well how to use the API with one exception, the password must be converted to UPPERCASE, using something like strupr(), before passing it to the API. If the password is not uppercase, LoginToFileServer() will return error 255 (0xff), which is simply 'Login Failure'.

Example:

char pswd[127];

printf("Enter password: "); gets(pswd); LoginToFileServer("myserver/joe",OT_USER,strupr(pswd));

icon002.exe

icon002.exe18.9 K2005-04-06

--Benjamin Fjeldsted

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.