Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating 'Initials' in LDAP using ASP 1

Status
Not open for further replies.

IAmMad

Programmer
Aug 1, 2005
2
ZA
Hi

I have writen ASP code that successfully updates various fields like co, division, l, st and a few others on LDAP, but for some reason I get an error

-2147016657 (no description) when I try to update the Initials using the following code (exact same code as with other 'fields')
Code:
objCN.Put "Initials", InitialVar
objCN.SetInfo
On the SetInfo command I get the error. Can anyone help please - Do u know if 'Initials' has limited access.

 
>-2147016657 (no description)
In hex, it is 8007202F A Constraint violation.

>objCN.Put "Initials", InitialVar
InitialVar may violate the constraints on initials attribute. It's length should be 6 characters maximum, for instance.

What is the value of InitialVar you're working on?
 
Solved thanx - you da man !!!

Never even considered the max sizes, but now I am trimming the result from our db before and then choppping it down to 6 chars
Code:
left(trim(variable),6)
, and it works super.

Just goes to show how totally useless the tech support is on the official websites

Thanx again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top