Skip to main content
Question

Active Directory


Are there any FME transformers for accessing Active Directory? I need to get user info through Active Directory for metadata uses.

I can access AD through a standalone Python program and using the pyad module, but the Python interpreter in FME does not know this module. I have tried changing the Python interpreter that FME uses, but then my sqlexecutor crashes. Likewise, I have tried setting sys.path in my FME PythonCaller with no success.

The easiest method would be to connect to Active Directory through an FME transformer. Does it exist?

Thanks

4 replies

todd_davis
Influencer
Forum|alt.badge.img+22
  • Influencer
  • July 21, 2016

You can choose the python interpreter that you want to use in both Workbench and Server. In Workbench, it under tools, FME Options and then Translation.

That then means any FME Workbench will use that interpreter for all translations. If that will be annoying, I also have a custom transformer that allow you to select the python interpreter you run a script against and that won't change the underlying FME Workbench python interpretter.

As for Active Directory reading, I am not sure.


david_r
Celebrity
  • July 21, 2016

I haven't seen anything related to Active Directory in FME Desktop. I suspect your best option is to use Python. As mentioned by @todd_davis, it should be pretty straight forward to set another Python interpreter and I've encountered no problems related to e.g. the SQLExecutor when doing that.

If your SQLExecutor crashes, consider posting the error messages here.


helmoet
Forum|alt.badge.img+8
  • October 19, 2018

Hi, not sure what you mean by "Connect to Active Directory". Anyway, there could be a solution just using a SystemCaller with the Windows Command language. Like NET USER myUser /DOM or NET GROUP myGroup /DOM and capture the results in a tekst file (> filename 2>&1). Finally read the results using textfile format and FeatureReader. Also there are a lot of readers and transformers that offer an authentication mechanism in the latest FME versions.


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • October 22, 2018
helmoet wrote:

Hi, not sure what you mean by "Connect to Active Directory". Anyway, there could be a solution just using a SystemCaller with the Windows Command language. Like NET USER myUser /DOM or NET GROUP myGroup /DOM and capture the results in a tekst file (> filename 2>&1). Finally read the results using textfile format and FeatureReader. Also there are a lot of readers and transformers that offer an authentication mechanism in the latest FME versions.

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/ldap_jdbc/ldap_jdbc.htm documents the Active Directory reader in FME 2018+ -- so we should be able to read much worthwhile information that way.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings