Skip to main content

We are using Uniface 9.7.xx and Windows 10, 2012, and 2016 (Oracle & SQL Server Databases).

I was wondering if there is a common way for a Uniface app to use Active Directory or whether it needs to be done through a C++ interface?

Thanks.

Joanne Roberson

We are using Uniface 9.7.xx and Windows 10, 2012, and 2016 (Oracle & SQL Server Databases).

I was wondering if there is a common way for a Uniface app to use Active Directory or whether it needs to be done through a C++ interface?

Thanks.

Joanne Roberson

Hi Joanne,

You could try to use LDAP connector. It work with LDAP and Active Directory.

Cordialy,

Gilles.


We are using Uniface 9.7.xx and Windows 10, 2012, and 2016 (Oracle & SQL Server Databases).

I was wondering if there is a common way for a Uniface app to use Active Directory or whether it needs to be done through a C++ interface?

Thanks.

Joanne Roberson

I just did it and it works great. The biggest downside is it doesn't support LDAPS. Uniface says they "may" do it someday. If you need LDAPS you'd have to use stunnel along with Uniface LDAP.

Here's the link provided by Uniface.

https://bsriram.wordpress.com/2010/09/13/tunnelling-ldap-using-stunnel/


We are using Uniface 9.7.xx and Windows 10, 2012, and 2016 (Oracle & SQL Server Databases).

I was wondering if there is a common way for a Uniface app to use Active Directory or whether it needs to be done through a C++ interface?

Thanks.

Joanne Roberson

I have read up on LDAP in Uniface, but I think I need an example of how I can verify that a user logging into my app is authorized with "anonymous" logon (i.e. not having to login again).  I will search on LDAP now that I have some direction!

Thank you! 


I have read up on LDAP in Uniface, but I think I need an example of how I can verify that a user logging into my app is authorized with "anonymous" logon (i.e. not having to login again).  I will search on LDAP now that I have some direction!

Thank you! 

Here's how I have it setup for authentication. There's a few different ways to do it, but this is what worked for me.

;required setup
[PATHS]
$LDP=LDP:ldp.domain.com+389:DC=ldp,DC=domain,DC=com|?|?

[DRIVER SETTINGS]
LDP U2.0
USYS$LDP_PARAMS addbase:off

;validate ldap
open "|domain\\username|mypassword","LDP"
if ($status < 0)
return $status
endif


You can also create an LDAP entity and query the LDAP database. I played with this, but did not pursue it. I was able to get the basic AD info.

clear/e "LDAP"
samaccountname.LDAP/init = $v_ldapuser$
retrieve/e "LDAP"