Author Topic: ADSI Extender failure with Windows Server 2012  (Read 5482 times)

Bodokan

  • Newbie
  • *
  • Posts: 1
ADSI Extender failure with Windows Server 2012
« on: September 27, 2013, 12:45:56 am »
Hello WinBatch Community!

We try to read a property from a LDAP (Novell edir) Server.
On Windows Server 2008 R2 there is all fine and we get the right values.
On Windows Server 2012 we get the attached error:

WIL Extender Error: 246: Property's Syntax not supported.

Here is the script ->

-----------------------------------------------------------------------------------------------------------
;Load Appropriate Extender
AddExtender("WWADS44I.DLL")
debug(@on)
; Set credentials.
dsSetCredent("CN=reader,DC=users,DC=system", "Password")
; Path of user object "Rusty Gate"
sAdsiPath = "LDAP://ldap.domain.com/CN=p9999,DC=users,DC=auth,O=css,DC=data"
sProperty = "fullName" ; What we want to get.
sList = dsGetProperty(sAdsiPath, sProperty)
sList = StrReplace(sList,@TAB, @CRLF)
Message("Property Value(s)", sList)
Exit
-----------------------------------------------------------------------------------------------------------

Many thanks
Rene

koawmfot

  • Newbie
  • *
  • Posts: 9
Re: ADSI Extender failure with Windows Server 2012
« Reply #1 on: September 27, 2013, 05:53:44 am »
does the property look different in 2012 or is the syntax actually different?

you can try ADExplorer for sysinternals to check the actual properties and see if something is different.

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: ADSI Extender failure with Windows Server 2012
« Reply #2 on: September 27, 2013, 08:08:26 am »
Yes, you will need to confirm that that property name does actually exist.

Maybe try displayName or givenName instead?

http://msdn.microsoft.com/en-us/library/windows/desktop/ms675090(v=vs.85).aspx
Deana F.
Technical Support
Wilson WindowWare Inc.

td

  • Tech Support
  • *****
  • Posts: 2770
    • WinBatch
Re: ADSI Extender failure with Windows Server 2012
« Reply #3 on: September 27, 2013, 08:19:01 am »
Property syntax is determined by the LDAP server and not the client, Windows 2012 server in this case, and MSFT has not documented any changes to ADSI that would affect how 3rd party property type syntax is interpreted by ADSI. This makes it is difficult to understand exactly what is going on.

WinBatch support using ADSI COM Automation object and dotNet classes so you could try using one of those technologies to connect to the LDAP server.  There are COM Automation examples in the Tech Database and you can always post questions here if you run into difficulties.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

DAG_P6

  • Full Member
  • ***
  • Posts: 184
  • WinBatch rocks, and so does Wilson WindowWare!
    • WizardWrx
Re: ADSI Extender failure with Windows Server 2012
« Reply #4 on: September 28, 2013, 02:38:11 pm »
Since the OP mentioned that the target LDAP server is a Novell eDir, what about the NetWareX extender?
David A. Gray
You are more important than any technology.

td

  • Tech Support
  • *****
  • Posts: 2770
    • WinBatch
Re: ADSI Extender failure with Windows Server 2012
« Reply #5 on: September 29, 2013, 10:47:10 pm »
For a couple of reasons, I suspect not.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

ChuckC

  • Full Member
  • ***
  • Posts: 174
Re: ADSI Extender failure with Windows Server 2012
« Reply #6 on: September 30, 2013, 05:43:40 am »
If the Novell Client is not installed, then the NetWareX extender won't be usable.  Using ADSI only requires LDAP, which has been built into Windows for quite some time now.

td

  • Tech Support
  • *****
  • Posts: 2770
    • WinBatch
Re: ADSI Extender failure with Windows Server 2012
« Reply #7 on: September 30, 2013, 07:47:27 am »
It is my (all be it very limited) understanding that the there is no guarantee that the Novell Netware service is even available on the OS running the eDirectory service.   I also have concerns about the reliability of the NetwareX extender when used with the latest versions of the Novell Client 2 that would likely need to be used on Win2k12.   
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

ChuckC

  • Full Member
  • ***
  • Posts: 174
Re: ADSI Extender failure with Windows Server 2012
« Reply #8 on: October 01, 2013, 12:48:01 pm »
It is my (all be it very limited) understanding that the there is no guarantee that the Novell Netware service is even available on the OS running the eDirectory service.   I also have concerns about the reliability of the NetwareX extender when used with the latest versions of the Novell Client 2 that would likely need to be used on Win2k12.


I have a lot of native C++ code that makes direct use of the Novell XPLAT API Library functions, and it is running with Novell Client for Windows 8, Win2K8 R2 & Win2K12.  So far, I have not been experiencing any run time problems.  Given what I know about the internals of the NetWareX extender, namely that it uses the same library functions in the Novell Client, I wouldn't be anticipating any significant problems with it.


td

  • Tech Support
  • *****
  • Posts: 2770
    • WinBatch
Re: ADSI Extender failure with Windows Server 2012
« Reply #9 on: October 01, 2013, 01:21:03 pm »
I have a lot of native C++ code that makes direct use of the Novell XPLAT API Library functions, and it is running with Novell Client for Windows 8, Win2K8 R2 & Win2K12.  So far, I have not been experiencing any run time problems.  Given what I know about the internals of the NetWareX extender, namely that it uses the same library functions in the Novell Client, I wouldn't be anticipating any significant problems with it.

We have had a couple of Netware extender user reports that would seem to suggest otherwise.   
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

ChuckC

  • Full Member
  • ***
  • Posts: 174
Re: ADSI Extender failure with Windows Server 2012
« Reply #10 on: October 03, 2013, 05:22:34 am »
I have a lot of native C++ code that makes direct use of the Novell XPLAT API Library functions, and it is running with Novell Client for Windows 8, Win2K8 R2 & Win2K12.  So far, I have not been experiencing any run time problems.  Given what I know about the internals of the NetWareX extender, namely that it uses the same library functions in the Novell Client, I wouldn't be anticipating any significant problems with it.

We have had a couple of Netware extender user reports that would seem to suggest otherwise.   

Interesting...  Can you elaborate in more detail what types of failures are being observed?

td

  • Tech Support
  • *****
  • Posts: 2770
    • WinBatch
Re: ADSI Extender failure with Windows Server 2012
« Reply #11 on: October 03, 2013, 06:47:52 am »
Presently, not much else to add.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade