<p>Then your filter with membeuid=falan works as i should. On production your filter will be diferent.</p>
<p>Greg.</p>
<p>Send from htc desire z</p>
<div class="gmail_quote">13-08-2012 13:46, "Fosiul Alam" <<a href="mailto:fosiul@gmail.com">fosiul@gmail.com</a>> napisa³(a):<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry I know what you meant<br>
<br>
my lab is different then the production<br>
<br>
its only take meberUid=falam<br>
thats it<br>
<br>
On Mon, Aug 13, 2012 at 12:38 PM, Fosiul Alam <<a href="mailto:fosiul@gmail.com">fosiul@gmail.com</a>> wrote:<br>
> Hi okelet<br>
> did you mean<br>
><br>
> ldapsearch -xZZ -D "cn=Manager" -w 'xxxxx'<br>
> "memberUid=falam,ou=users,l=uk,dc=fosiul,dc=lan"<br>
><br>
> ??<br>
><br>
> but it does not return anything<br>
><br>
><br>
> On Mon, Aug 13, 2012 at 12:28 PM, Juan Asensio Sánchez <<a href="mailto:okelet@gmail.com">okelet@gmail.com</a>> wrote:<br>
>> Well, it looks your filter is incorrect. It should be:<br>
>><br>
>> member=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan<br>
>> uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan<br>
>> memberUid=falam<br>
>><br>
>> as memberUid is designed to contain only the user uid, not the DN.<br>
>><br>
>> Regards.<br>
>><br>
>><br>
>> 2012/8/13 Fosiul Alam <<a href="mailto:fosiul@gmail.com">fosiul@gmail.com</a>>:<br>
>>> i have chagned base to dc=fosiul,dc=lan<br>
>>><br>
>>> also this<br>
>>><br>
>>><br>
>>> ldapsearch -xZZ -D "Manager" -w 'test' -b "l=uk,dc=fosiul,dc=lan"<br>
>>> "memberUid=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan"<br>
>>><br>
>>><br>
>>> # extended LDIF<br>
>>> #<br>
>>> # LDAPv3<br>
>>> # base <l=uk,dc=fosiul,dc=lan> with scope subtree<br>
>>> # filter: memberUid=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan<br>
>>> # requesting: ALL<br>
>>> #<br>
>>><br>
>>> # search result<br>
>>> search: 3<br>
>>> result: 0 Success<br>
>>><br>
>>> # numResponses: 1<br>
>>><br>
>>><br>
>>> but its not giving anything ..<br>
>>> its works on my lab<br>
>>> but not in production<br>
>>><br>
>>><br>
>>> On Mon, Aug 13, 2012 at 12:00 PM, Juan Asensio Sánchez <<a href="mailto:okelet@gmail.com">okelet@gmail.com</a>> wrote:<br>
>>>> Hi<br>
>>>><br>
>>>> Yes, -b "l=uk,dc=fosiul,dc=lan" (in your message there are 2 double<br>
>>>> quotes), or, as Grzegorz says, change the base in ldap.conf (the path<br>
>>>> changes if you on Debian or Red hat based systems, but not sure).<br>
>>>><br>
>>>> Are you still getting the error, or just no entries are returned? If<br>
>>>> the seconf case, then no entries match the filter.<br>
>>>><br>
>>>> Regards.<br>
>>>><br>
>>>><br>
>>>> 2012/8/13 Grzegorz Dwornicki <<a href="mailto:gd1100@gmail.com">gd1100@gmail.com</a>>:<br>
>>>>> Hi<br>
>>>>><br>
>>>>> He ment BASE directive in /etc/openldap/ldap.conf<br>
>>>>><br>
>>>>> Greg.<br>
>>>>><br>
>>>>> Send from htc desire z<br>
>>>>><br>
>>>>> 13-08-2012 12:52, "Fosiul Alam" <<a href="mailto:fosiul@gmail.com">fosiul@gmail.com</a>> napisa³(a):<br>
>>>>><br>
>>>>>> Hi thanks<br>
>>>>>><br>
>>>>>> But<br>
>>>>>><br>
>>>>>> dapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b "l=uk"<br>
>>>>>> "uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan"<br>
>>>>>><br>
>>>>>> it does not return anything<br>
>>>>>><br>
>>>>>> you meant to put<br>
>>>>>><br>
>>>>>> dapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b "<br>
>>>>>> l=uk,dc=fosiul,dc=lan""<br>
>>>>>> "uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan"<br>
>>>>>><br>
>>>>>> ?? still it does not return anything<br>
>>>>>><br>
>>>>>><br>
>>>>>> also what you meant by to change value in ldap.conf ??<br>
>>>>>><br>
>>>>>><br>
>>>>>> On Mon, Aug 13, 2012 at 11:29 AM, Juan Asensio Sánchez <<a href="mailto:okelet@gmail.com">okelet@gmail.com</a>><br>
>>>>>> wrote:<br>
>>>>>> > Yo should use parameter "-b" in ldapsearch:<br>
>>>>>> ><br>
>>>>>> > ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b "l=uk"<br>
>>>>>> > "uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan"<br>
>>>>>> ><br>
>>>>>> > Or change the default values in ldap.conf.<br>
>>>>>> ><br>
>>>>>> > Regards.<br>
>>>>>> ><br>
>>>>>> > 2012/8/13 Fosiul Alam <<a href="mailto:fosiul@gmail.com">fosiul@gmail.com</a>>:<br>
>>>>>> >> Hi Bellow search should return some result ( and its working on my test<br>
>>>>>> >> lab)<br>
>>>>>> >> but in production server .. i believe its getting the wrong base :<br>
>>>>>> >><br>
>>>>>> >> # # base <dc=uk,dc=fosiul,dc=lan> (default) with scope subtree<br>
>>>>>> >><br>
>>>>>> >> it should be l=uk.<br>
>>>>>> >> bellow is the search :<br>
>>>>>> >><br>
>>>>>> >> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest'<br>
>>>>>> >> "uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan"<br>
>>>>>> >> # extended LDIF<br>
>>>>>> >> #<br>
>>>>>> >> # LDAPv3<br>
>>>>>> >> # # base <dc=uk,dc=fosiul,dc=lan> (default) with scope subtree<br>
>>>>>> >> # filter: uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan<br>
>>>>>> >> # requesting: ALL<br>
>>>>>> >> #<br>
>>>>>> >> # search result<br>
>>>>>> >> search: 3<br>
>>>>>> >> result: 32 No such object<br>
>>>>>> >> matchedDN: dc=fosiul,dc=lan<br>
>>>>>> >><br>
>>>>>> >> # numResponses: 1<br>
>>>>>> >><br>
>>>>>> >><br>
>>>>>> >> can any one please tel me how to fix query ?? i am stuck now ..<br>
>>>>>> >> Thanks<br>
>>>>>> >> --<br>
>>>>>> >> 389 users mailing list<br>
>>>>>> >> <a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
>>>>>> >> <a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br>
>>>>>> > --<br>
>>>>>> > 389 users mailing list<br>
>>>>>> > <a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
>>>>>> > <a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> --<br>
>>>>>> Regards<br>
>>>>>> Fosiul Alam<br>
>>>>>> 07877100621<br>
>>>>>> <a href="http://www.fosiul.co.uk" target="_blank">http://www.fosiul.co.uk</a><br>
>>>>>> --<br>
>>>>>> 389 users mailing list<br>
>>>>>> <a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
>>>>>> <a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br>
>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>> 389 users mailing list<br>
>>>>> <a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
>>>>> <a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br>
>>>> --<br>
>>>> 389 users mailing list<br>
>>>> <a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
>>>> <a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Regards<br>
>>> Fosiul Alam<br>
>>> 07877100621<br>
>>> <a href="http://www.fosiul.co.uk" target="_blank">http://www.fosiul.co.uk</a><br>
>>> --<br>
>>> 389 users mailing list<br>
>>> <a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
>>> <a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br>
>> --<br>
>> 389 users mailing list<br>
>> <a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
>> <a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br>
><br>
><br>
><br>
> --<br>
> Regards<br>
> Fosiul Alam<br>
> 07877100621<br>
> <a href="http://www.fosiul.co.uk" target="_blank">http://www.fosiul.co.uk</a><br>
<br>
<br>
<br>
--<br>
Regards<br>
Fosiul Alam<br>
07877100621<br>
<a href="http://www.fosiul.co.uk" target="_blank">http://www.fosiul.co.uk</a><br>
--<br>
389 users mailing list<br>
<a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></blockquote></div>