#123100 - 2004-07-15 09:43 PM
Using PutEx in 4.22
|
ItsMillerTime4u
Fresh Scripter
Registered: 2004-07-15
Posts: 5
|
Does anyone know why the following code doesn't work using kix4.22 final release?
$objUser = GetObject("LDAP://server/CN=User,OU=Group,DC=site,DC=com") ? @ERROR ;Clear any current entries objUser.PutEx(1,"otherTelephone",0)
;Add the new entries objUser.PutEx(3,"otherTelephone","111-111-1111") ? @SERROR objUser.PutEx(3,"otherTelephone","222-222-2222") ? @SERROR objUser.PutEx(3,"otherTelephone","333-333-3333") ? @SERROR objUser.PutEx(3,"otherTelephone","444-444-4444") ? @SERROR objUser.SetInfo
The error string I get at each line is COM exception error "PutEx" (Active Directory - Unspecified error) [-2147352567/80020009]
|
|
Top
|
|
|
|
#123104 - 2004-07-15 10:42 PM
Re: Using PutEx in 4.22
|
ItsMillerTime4u
Fresh Scripter
Registered: 2004-07-15
Posts: 5
|
missing the $ was just a typo on my end here. The actaul kix file was on a another system.
I don't have any problem using the PutEx to clear the current values that may be present, the errors only occur when I then try to append the new values to the attribute. I know that the following VB code works: objUser.PutEx(2,"otherTelephone",Array("111-111-1111","222-222-2222","333-333-3333","444-444-4444")) objUser.SetInfo
but I'm not sure how to translate the Array portion into KiX
|
|
Top
|
|
|
|
#123106 - 2004-07-15 10:51 PM
Re: Using PutEx in 4.22
|
ItsMillerTime4u
Fresh Scripter
Registered: 2004-07-15
Posts: 5
|
That worked.......Thank You!
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Henriques)
and 2516 anonymous users online.
|
|
|