I have not used this plugin myself (I am not using the Apple Mail server and the one I am using uses its own separate user accounts). However here are somethings to check.
1. If your Open Directory server is a different machine to your Mail server then you may need to tell this plugin the address of the Open Directory server, so instead of ldap_server = 'localhost' you would specify its host name e.g. ldap_server = 'myserver.mydomainishere.org'
2. Some LDAP operations may require you to 'bind' (i.e. login) to the LDAP server with a user account that has write permission before you can modify another account. Typically this would be to use the 'admin' account (the name of which depends on what you used when installing the server). You therefore might bind using a value something like
uid=admin,cn=users,dc=mydomainishere,dc=org
and also of course use the correct password.
3. In fact now that I think about it, your ldap
basedn might actually be 'cn=users,dc=mydomainishere,dc=org'
4. Finally, due to confusing
and conflicting information in Apple's documentation, some people end up configuring their Open Directory so that the host name of the Open Directory server becomes part of the search path. This approach does work but in my opinion is not the best way to do it, therefore your ldap
basedn might be either 'dc=myserver,dc=mydomainishere,dc=org' or 'cn=users,dc=myserver,dc=mydomainishere,dc=org'