-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modifyAccount (Account Status) not updating #56
Comments
I've confirmed the issue is with this package and NOT zimbra. The trace in Zimbra showed a blank modifyAccountRequest which was unexpected but sent me in the right direction. After digging around with my limited skills I was able to narrow the issue down to the function below from Admin/Struct/AdminAttrsImplTrait.php
It looks like the key value pair isn't properly being instantiated? so the array_search returns false and the attributes are filtered. I'll be honest this isn't really my forte so I am not sure where else to look. As a workaround I am skipping the array filter line and returning the attributes but I'd like to sort this out properly. I think I understand what the array_filter line does but I am not sure where Attr is instantiated/what to look for. Hopefully someone smarter than myself can take a look and chime in. Thank you all in advance! |
I'm experiencing similar problems here ... attempting to change zimbraAccountStatus to locked ... which is a little frustrating as it doesn't work and I'm not quite sure where to start with fixing it in the package :( My code ... in case you can see anything obvious as to why it doesn't work? `
` |
I was experiencing similar problems until I changed $zimbraAccountStatus = new KeyValuePair("zimbraAccountStatus", "locked"); to $zimbraAccountStatus = new Attr("zimbraAccountStatus", "locked"); :) |
Hello,
I am not sure if its me or what is going on but I can't seem to get the account status to update. The request goes through without error but the account status isn't changed.
Relevant code below:
`
`
The response shows the status still being active so I assume either Zimbra is throwing an error and its not being caught for some reason or its ignoring the key value pair? In any event the catch block never runs and the print_r shows the following for account status:
[77] => Zimbra\Admin\Struct\Attr Object ( [key:Zimbra\Common\Struct\KeyValuePair:private] => zimbraAccountStatus [value:Zimbra\Common\Struct\KeyValuePair:private] => active )
I am able to create users as well as modify passwords so the API itself is working. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: