[gq-commit] gq/src util.c,1.51,1.52
Status: Beta
Brought to you by:
sur5r
From: <sta...@us...> - 2002-10-11 14:57:49
|
Update of /cvsroot/gqclient/gq/src In directory usw-pr-cvs1:/tmp/cvs-serv19942 Modified Files: util.c Log Message: * Allow for special characters in bind DN and bind password Index: util.c =================================================================== RCS file: /cvsroot/gqclient/gq/src/util.c,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** util.c 11 Oct 2002 14:00:49 -0000 1.51 --- util.c 11 Oct 2002 14:57:41 -0000 1.52 *************** *** 207,210 **** --- 207,215 ---- } + /* take care of special characters... */ + + binddn = encoded_string(binddn); + bindpw = encoded_string(bindpw); + switch (server->bindtype) { case BINDTYPE_KERBEROS: *************** *** 236,239 **** --- 241,249 ---- break; } + + free(binddn); + free(bindpw); + + binddn = bindpw = NULL; if (rc != LDAP_SUCCESS) { |