LDAP

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
RDalzell
Posts: 205
Joined: Thu Jan 28, 2010 6:57 am
Location: Alsip, Illinois USA

LDAP

#1 Post by RDalzell »

Has anybody developed an interface for the LDAP user information.

I would like to provide a single signon access via the network login, rather than requiring the user to login into each application individually.

Any suggestions would be appreciated.

Rick

User avatar
Tom
Posts: 1176
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: LDAP

#2 Post by Tom »

I don't use LDAP, but I allow (via preferences) to automatically login users to my app which have the same username inside the app as they have for Windows.

This is the function to get the Windows user name:

Code: Select all

STATIC FUNCTION xw32_GetUserName()
  LOCAL nxDll, cCall, cRetVal := space(256), nRetVal := 0, nSize := 255
  nxDll := DllLoad( "ADVAPI32.DLL")
  IF nxDll != 0
      nRetVal := DllCall( nxDll, DLL_STDCALL, "GetUserNameA", ;
                          @cRetVal, @nSize )
      DllUnload( nxDll )
  ENDIF
RETURN ( Upper(StrTran(cRetVal,Chr(0),'')) )
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Post Reply