Full_Name: nina wang
OS: Vxworks mips
Submission from: (NULL) (126.96.36.199)
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 :
LDAPMessage *res=NULL, *e;
char *a, *dn;
/* open a connection */
if ( (ld = ldap_init("192.xxx.xxx.xxx",389 ))== NULL )
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" );
ldap_msgfree( res );
/* close and free connection resources */
ldap_unbind( ld );
Hope to receive your response soon. Thank you .