Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi.

i am working under windows.

ldap_result() function fails if base dn contains a space..

can you pls help me..
Posted
Comments
Code-o-mat 16-May-12 10:45am    
Not enough information...try providing some more details about what you are doing, preferably show some relevant code sniplets, otherwise people will have a hard time trying to guess what you mean, if they will try at all...
@BangIndia 16-May-12 11:02am    
hello sir .
sorry, for the question.
ldap_search_ext - is the function i am using before the ldap_result() API.
in the ldap_search_ext function i am passing the base dn. (second argument)
then i am calling the ldap_result() API with the msg id which i am getting from the ldap_result().

case 1:
if i pass the base dn does't containing any space means the ldap_result() function will return 100 .

case 2:
if i pass the base dn whihc containing space means the ldap_result() function will return 101 (Event though it having the users under the base dn).

That is the prob for me sir.

Your question is not at all clear, but you may like to check here[^].
 
Share this answer
 
Comments
@BangIndia 16-May-12 11:02am    
hello sir .
sorry, for the question.
ldap_search_ext - is the function i am using before the ldap_result() API.
in the ldap_search_ext function i am passing the base dn. (second argument)
then i am calling the ldap_result() API with the msg id which i am getting from the ldap_result().

case 1:
if i pass the base dn does't containing any space means the ldap_result() function will return 100 .

case 2:
if i pass the base dn whihc containing space means the ldap_result() function will return 101 (Event though it having the users under the base dn).

That is the prob for me sir.
Richard MacCutchan 17-May-12 4:43am    
What do you mean by "base dn"? It is still not at all clear what you are trying to do.
Why not take the space out first?
 
Share this answer
 
Comments
@BangIndia 17-May-12 1:14am    
i can't get your words

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900