|
| getUserName or equivilent |
 |
Fri, 05 May 2006 00:49:26 GMT |
** Multi posted in other NG n.s.e.w **
Hi,
I am new to Novell eDirectory.
I have an application that uses MS Active Directory for single signon.
We are able to get the current logged in Windows username through the
GetUserName method that is available in advapi32.dll
A new thought process for us now, is that some customers are now using
Novell Netware and eDirectory as the LDAP server.
When someone logs on to their PC using Novell, they are not necesarily
loggin on to the local machine with that user name. This means that when I
call the GetUserName method, I am not getting their actual Novell user
name, I am just getting the local machine username. In some cases, the
local machine username will be the same across the organisation. eg.
"Administrator".
I would like to know what I should be calling to get the Novell Remote user
name, and in what DLL does this reside in?
Thanks very much.
--
|
| Post Reply
|
| Re: getUserName or equivilent |
 |
Fri, 05 May 2006 10:54:49 GMT |
Hi,
Disco Octopus <discooctopus@discooctopus.com> wrote in news:j4dapxip6abm
$.pion0tglyzcu$.dlg@40tude.net:
> ** Multi posted in other NG n.s.e.w **
ok - but for future posts lets use the novell.devsup.clib.xplatwin forum on
this server here - I've added it already to this reply.
> Hi,
>
> I am new to Novell eDirectory.
>
> I have an application that uses MS Active Directory for single signon.
>
> We are able to get the current logged in Windows username through the
> GetUserName method that is available in advapi32.dll
>
> A new thought process for us now, is that some customers are now using
> Novell Netware and eDirectory as the LDAP server.
>
> When someone logs on to their PC using Novell, they are not necesarily
> loggin on to the local machine with that user name. This means that when
I
> call the GetUserName method, I am not getting their actual Novell user
> name, I am just getting the local machine username. In some cases, the
> local machine username will be the same across the organisation. eg.
> "Administrator".
>
> I would like to know what I should be calling to get the Novell Remote
user
> name, and in what DLL does this reside in?
hmm, unfortunately it isnt that simple; you need a couple of API calls.
Also if you want to do it right you need even more coding: we can AFAIKT
simultanously connect to 8 different trees, and therefore also have 8
different usernames at same time....
but with few calls you're able to get the default loginame which might be
sufficient in most cases.
here's a Perl sample where I directly call into the Client32 DLLs
http://www.gknw.at/nwperl/win32api/nwhello.txt
In addition I have written a vbscript some time ago which does exactly what
you need:
http://www.gknw.at/vb/scripts/cl32api.bas
and a C sample here:
http://www.gknw.at/development/samples/mingw32/nwgetuser.zip
HTH, Guenter.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|