Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 8, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Active Directory
Andrew James
Posts: 51
 
Active DirectoryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Nov 09 8:37 AM
We are building a leadline form and the drop down for leadline passer needs to be populated with evreyone in the active directory. Is this possible?
[Reply][Quote]
Lane
Posts: 121
 
Re: Active DirectoryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Nov 09 9:27 AM
several options exist, but most depend on network setup and access permitted.
using a ie control launch ldap:// and process the user selected items (if its enabled)
If security is high or remotes are in place, Use a nightly agent to update the slx list from the AD. I'd go .net since processing the objects is a PAIN in script.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Active DirectoryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Nov 09 9:36 AM
This is old code, and I haven't tried it lately...


Set conn = CreateObject("ADODB.Connection")
conn.Provider = "ADsDSOObject"
conn.Properties("User ID") = "DOMAIN\USER"
conn.Properties("Password") = "PASSWORD"
conn.Properties("Encrypt Password") = True
conn.Open "Active Directory Provider"
set oCmd = CreateObject("ADODB.Command")
oCmd.ActiveConnection = conn
oCmd.Properties("Page Size") = 10
oCmd.Properties("Asynchronous") = true

root = "<LDAP://DOMAIN.COM/ou=MYOU,ou=OU,DC=DOMAIN,DC=COM>"


filt = "(objectClass=user)"
attributes = "cn"
scope = "base"
QueryString = root & ";" & filt & ";" & attributes & ";" & scope
oCmd.CommandText = QueryString

Set rs = oCmd.Execute

'On error resume next

While Not rs.EOF
strng1 = rs.Fields("name").Value
Wscript.Echo strng1
rs.MoveNext
Wend


Have fun !!!!
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/8/2025 5:40:14 PM