As commented, CMIS query applies on the rights of the user, used in the CMIS binding connection. You can check it more naturally with the CMIS workbench, in which you can run CMIS queries and debug them.
So, if the same user/login is entered, yeah, the documents are displayed. Nevertheless, I'm using session ticket in the alfresco that i want to connect with CMIS. So my users won't be sync with the user/password system...
Is there any solution or i'm forced to break the ticket session of my alfresco in order to have the same login/password in both solutions?
Well, when an user is logged in his session windows, it's automatically sync with the alfresco instance. so when he goes in alfresco, he is automatically logged without possibilities of log out. There is no password for this alfresco.
However, in the intranet solution, the user has to log in with log/passwd. So, the two accounts (the one in alfresco and the other in the intranet) matches with the login, but not the password.
The only exeption is admin account because he exists with a password in alfresco which is the same in the intranet.
For example : I can create a user "test" with password "test123" in the intranet. If i create the same user with same password in alfresco it matches and can show me the content in the search.
Douglas is right - you can use the same user/password base for windows and the intranet (i.e. Active Directory). If this is not possible, try to manage the access permissions with groups and add your users to these groups as needed.
I'm sorry for the late answer, I wasn't able to read your answers previously. Well on the paper, we could do that, but in the company, we can't, knowing the fact that it is mandatory to have the automatic log in and LDAP doesn't provide this functionality. I'm afraid I have to find another way.
Nonetheless, thanks for all your answers. If you have any ideas, please let me know.