LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 01-Oct-2009, 05:17 AM
Wolfgang Schreiber
NNTP User
 
Posts: n/a
Default Re: Retrieve current user DN [C/C++]

Matt,

if you want to use LDAP you may not be able to retrieve the existing Novell
Client32 authentication data.
ldap_get_bind_dn() will just return the dn that you used in you LDAP app to
bind, typically something that you know already.

If you're using the Novell Windows Client32 you can use the Client32 APIs
(like NWDSWhoAmI) and the Client32 protocol (aka NDAP).
"[Public]" means, you're not logged in on that connection handle (you may
have connections to more than one tree).
Retry after logging in with your client - check the "red N" tray icon for
your connections.

If this is what you're about, this may be the wrong forum, since this is
LDAP focussed.





"MattJay" <MattJay@no-mx.forums.novell.com> wrote in message
news:MattJay.3zcti0@no-mx.forums.novell.com...
>
> Hello,
>
> How would I go about retrieving the DN of the currently logged in user?
> I was told NWDSWhoAmI was the way to go, but all it returns is
> "[Public]"
>
>
> Thankyou,
>
> Matt.
>
>
> --
> MattJay
> ------------------------------------------------------------------------
> MattJay's Profile: http://forums.novell.com/members/mattjay.html
> View this thread: Retrieve current user DN [C/C++]
>



Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 02:50 AM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2