r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4
[gd/samba-autobuild/.git] / source3 / passdb / pdb_nds.c
index 599a198c5a4cf7d122671ecb4e265032581823f9..5de80a827fa0f7f99c92214757d4067e9f0dae3b 100644 (file)
@@ -669,7 +669,7 @@ int pdb_nds_get_password(
        LDAP *ld = ldap_state->ldap_struct;
        int rc = -1;
 
-       rc = nmasldap_get_password(ld, object_dn, pwd_len, pwd);
+       rc = nmasldap_get_password(ld, object_dn, pwd_len, (unsigned char *)pwd);
        if (rc == LDAP_SUCCESS) {
 #ifdef DEBUG_PASSWORD
                DEBUG(100,("nmasldap_get_password returned %s for %s\n", pwd, object_dn));