DEV Community

bajubullet
bajubullet

Posted on

invalid server address: ad user sync error

I wasted a lot of time today debugging an ad sync error. The message I was getting from my ad sync library was invalid server address. This was making me thing that something was wrong in the server address(ip, host, protocol etc). But after some time i figured out that was not the case because other ad functions like group search etc were working fine.

This was very weird to me, how come some actions are working and others are throwing invalid server address error. This was crashing my brain 🤯.

After some debugging and carefully inspecting every attribute I was providing to the ad library I finally found the issue which was I added an extra m in the base dn I provided e.g. xyz.comm instead of xyz.com. This was a bad case of wrong error message and shows how a small assumption or bad error message can make a simple error seem like a mind breaking error.

Top comments (0)