Run an AuthRequest against the zimbra server and return the authentication token
Authenticate to the Zimbra server
Parameters: |
|
---|---|
Returns: | The authentication token or None |
Return type: | str or None or unicode |
A tool to convert from Zimbra dicts to Python dicts
“Zimbra dicts” means lists in the following form:
[
{
"n": "key",
"_content": "value"
}
]
Fetch a value from a zimbra-like json dict (keys are “n”, values are “_content”
This function may be slightly faster than zimbra_to_python(haystack)[ needle], because it doesn’t necessarily iterate over the complete list.
Parameters: |
|
---|---|
Returns: | the value or None, if the key is not found |
Preauth Generator
Generates a zimbra preauth value
Parameters: |
|
---|---|
Returns: | The preauth value to be used in an AuthRequest |
Return type: | str |
Tools to easily serialize XML from other input forms
Returns a string of the input compatible between py2 and py3 :param input_string: :return: