Skip to content
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

OpenLDAP Integration #2

Closed
QF0xB opened this issue May 26, 2020 · 21 comments
Closed

OpenLDAP Integration #2

QF0xB opened this issue May 26, 2020 · 21 comments

Comments

@QF0xB
Copy link
Contributor

QF0xB commented May 26, 2020

Hey,

Would an OpenLDAP integration be possible?
With more changes available for different setups?

Regards

@Programmierus
Copy link
Owner

Well, it's not what I need in my environment, and I don't expect to have that much free spare time to do it in the nearest future... The only thing I miss now is LDAP Filter parameter that I plan to implement soon. Of course, you are free to submit a PR.

@QF0xB
Copy link
Contributor Author

QF0xB commented May 26, 2020

API api/v1/add/mailbox: danger - access_denied

I am trying to migrate it, did this error occur before?

API api/v1/add/mailbox: danger - access_denied

Happens in the api.add_user function

@Programmierus
Copy link
Owner

Programmierus commented May 26, 2020

No. Are u sure your IP is allowed as read-write in the mailcow API settings?

@QF0xB
Copy link
Contributor Author

QF0xB commented May 26, 2020

Yes
I am searching it, thanks for your help

@QF0xB
Copy link
Contributor Author

QF0xB commented May 26, 2020

Really strange behavior, I deactivated the api IPs check for a second and still the same error

@Programmierus
Copy link
Owner

Is the domain added for mailboxes you are trying to add?

@QF0xB
Copy link
Contributor Author

QF0xB commented May 26, 2020

Damn, I am so dumb xD It was a new mailcow setup f***

@Programmierus
Copy link
Owner

Glad I could help... I'll add this info to readme...

@QF0xB
Copy link
Contributor Author

QF0xB commented May 27, 2020

Hey could you maybe look at my repository?

It should work like yours, but with some small tweaks and changes.

Regards

Klick

@Programmierus
Copy link
Owner

It seems for me that you are using the code outside of docker extension (otherwise I don't know why you moved from environmental variables to a configuration file). These changes won't fit in the usage model with docker-compose-override.xml.

Besides, that looks nice, but I don't see much of a sense. I'll add a filtering option later, and IMHO it'll do.

@QF0xB
Copy link
Contributor Author

QF0xB commented May 28, 2020

ldap([email protected],XXXXXX,<co0xpLWm/scxDEf6>): Password mismatch (for LDAP bind) (given password: XXXX )

Did you ever had this? In dovecot? The password is right, really dont know whats the problem

@Programmierus
Copy link
Owner

Nope

@LukasK13
Copy link

@Programmierus Thank you for your code!
@Stormfox2 I adapted the code and the templates for openldap: https://github.com/LukasK13/ldap-mailcow

@etique57
Copy link

Hello @LukasK13,

I would like to use your adapted code from Programmierus, do you have a Docker image?

Thanks a lot to both of you!

@LukasK13
Copy link

Unfortunately not. However, you can find the necessary Dockerfile to build the docker image in my linked repo above.
If you want to, I can upload the corresponding docker-compose file in the next days.

@Programmierus
Copy link
Owner

Quick info from my: I am on the go for the next week or so. I'll research this issue and if it would be confirmed, that API filed changed, I'll amend the initial image ASAP.

@etique57
Copy link

Thanks @LukasK13 I'd really appreciate.

In the mean time I'll dig into how to build a docker image from a dockerfile.

Thanks!

@LukasK13
Copy link

Done

@etique57
Copy link

I got it to work. Thanks a lot!

@theoneandonly-vector
Copy link

theoneandonly-vector commented Feb 17, 2021

Done

hey @LukasK13 As I try to use this project I found your fork and using it I am getting much further than here (users getting created)

Added filedb user: [email protected] (Active: True)
...
...

but I still got other issues. so maybe you can enable the "issues"-tab on your fork?:
https://github.com/LukasK13/ldap-mailcow

@LukasK13
Copy link

Hey @theoneandonly-vector
I just enabled issues. As I‘m currently moving, I may not have the time to fix the issues, so a PR is more than welcome.

Gijsdeman referenced this issue in GEWIS/custommailcow-ldap Jan 13, 2023
Gijsdeman referenced this issue in GEWIS/custommailcow-ldap Jun 28, 2023
Checking HTTP config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants