Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing Novell Login Name

Status
Not open for further replies.

Betsvigi9

IS-IT--Management
Joined
May 31, 2001
Messages
46
Location
GB
I have been using an API to capture the Novell login name for use within Microsoft Access. This worked fine with Windows 98, but we recently upgraded to XP and it now no longer works.

This is because of the way XP has been set up and I cannot change that because it is a corporate standard; so I have to find a work around. Does anyone know of an API which picks up the login name direct from Novell as opposed to windows? Or has anyone successfully done this using some other method?

Any help would be gratefully received.
 
I am currently doing a DOS SET command in the login script:
DOS SET S_LOGIN="%LOGIN_NAME"

If you use a login script, this seems to work for 95, 98, 2000 & XP and I can call this variable from Visual Foxpro so you should be able to do the same from Visual Basic.

May not be the right way but it works for me.

HTH
Ed
 
Hiya,

The current setup we have here is Win2k, Netware Client and A Novell Server.
I currently write code in MSAccess to display / not display certain menu items in the database depending on who is logged on. It all works fine.

If you could let me know your setup and which API you are using I might be able to help / publish a sample of code.

Regards

Ian
 
Hello Ian

I most grateful if you could help, because I haven't been able to solve this problem.

I am using code that I found in The Access Web site, which works perfectly with 97.


I haven't published it in full because the person who wrote it only gives permission for it to be distributed as part of an application and I don't want to upset anyone.

The API part of it, which I've seem published elsewhere and so I think I'm OK to reproduce, is as follows:

Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _
"GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long

Thanks
Judith
 
Hi judith ...My Online Email address is

ianisold@yahoo.co.uk.

If you send me an Email there , I will give you a cutdown version of a database I have created with just the good bits in it that you are after (no point in you reinventing the wheel)!!

When you try it, if you have no luck, then just Email me with what's happening and I am sure I will be able to fix it for you.

Kindest Regards

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top