Hi,
I have implemented Scripting Driver in IDM 3.5.1 in SUSE Linux with
e-Dir 8.7.3for Automatic group membership provisioning in AD groups. It
is working fine with AD Global groups. But whenever i put the script for
Local Groups privilege for any server in domain it is saying Network
Path not found. the script I am using like this...

Dim strUser
Dim strComputer
strUser="testuser"
strComputer="srvrXP01"
Set oWshNet = CreateObject("WScript.Network" )
Set objGroup = GetObject("WinNT://" +strComputer + "/Power Users")
Set objUser = GetObject("WinNT://" + strUser)
' suppress errors in case the user is already a member
On Error Resume Next
objGroup.Add(objUser.ADsPath)
On Error Goto 0
On Error Resume Next
objGroup.Add(objUser.ADsPath)
On Error Goto 0

I am adding this script in add.vbs in Windows part of Scripting Driver.
it returns the error..
C:\Program Files\Novell\WSDriver\scripts\Subscriber.wsf(17, 2) (null):
The network path was not found.

But the script indepently working fine. An other thing is that when I
put a script in add.vbs for global group privilege in AD, it working
properly. the script is like this..

Set objDomain = GetObject("LDAP://dc=domain,dc=com")
Set objOU = GetObject("LDAP://ou=Users,ou=mgmt,dc=domain,dc=com")
Set objUser = objOU.Create("User", "cn= Bob Smith")
objUser.Put "sAMAccountName", "bsmith"
objUser.SetInfo
objUser.AccountDisabled = FALSE
objUser.SetInfo
Set objOU = GetObject("LDAP://ou=Users,ou=mgmt,dc=domain,dc=com")
Set objGroup =
GetObject("LDAP://cn=group1,ou=Groups,ou=mgmt,dc=domain,dc=com")
objGroup.Put "sAMAccountName", "group1"
objGroup.SetInfo
objGroup.Add objUser.ADSPath
WScript.Echo "End of Script"

a) What is the problem...I can't get it.
b) An user will have the privilege after a workflow. I have already
configured that. In the form he has to mention the server name as well
as the group name. but how to fetch that informaton in to the script.
Curently for testing purpose i am using the HardCoded script, just for
understanding the nature of the Scripting Driver as I am very new to
this.

Please give me some shot of starter....or an example...
It will highly appreciable..
Saumik..


--
saumik
------------------------------------------------------------------------
saumik's Profile: http://forums.novell.com/member.php?userid=4032
View this thread: http://forums.novell.com/showthread.php?t=330724