Full_Name: nina wang
Version: 2.2.19
OS: Vxworks mips
URL:
ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (222.68.187.35)
I remove these code from linux to gcc.
a computer equipmented os win 2000 server acts as server setting up AD .
i start a thread to init a ldap connection and bind them with a valid account
and password,configured in server. then unbind them every several seconds.
through special tools ,i can see that free memory always being decreasing.
if i only do action ldap_init,without bind to server,no the said scene .
THE CODE IS :
{
LDAP *ld;
LDAPMessage *res=NULL, *e;
int i;
char *a, *dn;
BerElement *ptr;
char **vals;
/* open a connection */
if ( (ld = ldap_init("192.xxx.xxx.xxx",389 ))== NULL )
return 1;
if ( ldap_simple_bind_s( ld,"CN=nina
wang,CN=Users,DC=ldap,DC=qtier,DC=com","0000" ) != LDAP_SUCCESS )
{
ldap_perror( ld, "ldap_simple_bind_s" );
return 1;
}
ldap_msgfree( res );
/* close and free connection resources */
ldap_unbind( ld );
return 0;
}
Hope to receive your response soon. Thank you .