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++]
>