grouper-users - RE: [grouper-users] PSP sync, clearing an attribute value in ldap
Subject: Grouper Users - Open Discussion List
List archive
- From: Gagné Sébastien <>
- To: Gagné Sébastien <>, <>
- Cc: <>
- Subject: RE: [grouper-users] PSP sync, clearing an attribute value in ldap
- Date: Mon, 25 Feb 2013 14:25:52 -0500
- Authentication-results: sfpop-ironport05.merit.edu; dkim=neutral (message not signed) header.i=none
Please forget the previous e-mail, I think I messed up my test. You CAN clear the attribute value if you set “replaceValues=”true”” and define an attribute with an empty value (e.g. scriptAttribute.getValues().add("")) . If replaceValues isn’t set to true you will get the “<errorMessage>'description' has no values.</errorMessage>” message since it tries to add an empty value (instead of replacing it) De : [mailto:] De la part de Gagné Sébastien Hi again, I have another question (again) : how do you clear an attribute value in ldap ? My tests shows that if I define an attribute with an empty value I get the error “'{attribute name}' has no values.” (see below). I’m using a script where if an attribute has value “Y” set a value in the attribute, otherwise set an empty value. This is an important use case in our distribution group integration since we want users to be able to mail-disable groups and that requires us to clear some ldap attributes (mail, mailNickname, proxyAdresses, etc.) Is there a way to do that ? I tried setting replaceValues=”true” but it didn’t work and there doesn’t seem that there’s any parameters to set that. Thanks Error message : <psp:syncResponse xmlns:psp='http://grouper.internet2.edu/psp' status='failure' requestID='2013/02/22-15:43:02.039' error='customError'> <modifyResponse xmlns='urn:oasis:names:tc:SPML:2:0' status='failure' requestID='2013/02/22-15:43:02.279' error='customError'> <errorMessage>'description' has no values.</errorMessage> </modifyResponse> <errorMessage>'description' has no values.</errorMessage> <psp:id ID='acad:testGroup'/> </psp:syncResponse> Sébastien Gagné, | Analyste en informatique 514-343-6111 x33844 | Université de Montréal, | Pavillon Roger-Gaudry, local X-100-11 |
- [grouper-users] PSP sync, clearing an attribute value in ldap, Gagné Sébastien, 02/22/2013
- <Possible follow-up(s)>
- RE: [grouper-users] PSP sync, clearing an attribute value in ldap, Gagné Sébastien, 02/25/2013
- Re: [grouper-users] PSP sync, clearing an attribute value in ldap, Tom Zeller, 02/26/2013
Archive powered by MHonArc 2.6.16.