Only the first example given is actually crypt() in the strict sense; the second example given is an glibc extension to crypt (SHA-512 (since glibc 2.7))
So if that is going to work cross-plattform, you must have a recent version of glibc everywhere, I guess. Details in "crypt(3)"...
Well, as long as the only place the password is checked/hashed happens to be the LDAP server (running on reasonably recent glibc), it should work fine even for non-glibc-based clients.
Best regards, – Miroslaw Baran