]> git.sur5r.net Git - openldap/blobdiff - contrib/saucer/main.c
s/ldap_open/ldap_init/ calls... ldap_open is deprecated.
[openldap] / contrib / saucer / main.c
index 605c1ad4ed959a639214cac26d94b4b239147ff5..d99d3e558dc3e807db6732171d82e3bd69a7dcee 100644 (file)
@@ -639,8 +639,8 @@ int main(int argc, char **argv)
 
        rc = user_tailor();
 
-       if (!(ld = ldap_open(hostname, portnum))) {
-               fprintf(stderr, "%s: unable to connect to server at host `%s' on port %d\n",
+       if (!(ld = ldap_init(hostname, portnum))) {
+               fprintf(stderr, "%s: unable to initialize LDAP session (%s:%d)\n",
                                progname, hostname, portnum);
                exit(2);
        }