Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Rob Crittenden
Fosiul Alam wrote: Hi just a quick question i have this in file dn: cn=techops-uk,ou=groups,l=UK,dc=fosiul,dc=lan uniqueMember: uid=salam,ou=users,l=UK,dc=fosiul,dc=lan changetype: modify delete: uniqueMember when i try to execute this ldapmodify -xZZ -a -D "cn=Directory Manager" -w 'testtest

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Fosiul Alam
Hi just a quick question i have this in file dn: cn=techops-uk,ou=groups,l=UK,dc=fosiul,dc=lan uniqueMember: uid=salam,ou=users,l=UK,dc=fosiul,dc=lan changetype: modify delete: uniqueMember when i try to execute this ldapmodify -xZZ -a -D "cn=Directory Manager" -w 'testtest' -f instattr.tmp ad

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Grzegorz Dwornicki
Then your filter with membeuid=falan works as i should. On production your filter will be diferent. Greg. Send from htc desire z 13-08-2012 13:46, "Fosiul Alam" napisał(a): > Sorry I know what you meant > > my lab is different then the production > > its only take meberUid=falam > thats it > >

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Fosiul Alam
Sorry I know what you meant my lab is different then the production its only take meberUid=falam thats it On Mon, Aug 13, 2012 at 12:38 PM, Fosiul Alam wrote: > Hi okelet > did you mean > > ldapsearch -xZZ -D "cn=Manager" -w 'x' > "memberUid=falam,ou=users,l=uk,dc=fosiul,dc=lan" > > ?? > >

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Fosiul Alam
Hi okelet did you mean ldapsearch -xZZ -D "cn=Manager" -w 'x' "memberUid=falam,ou=users,l=uk,dc=fosiul,dc=lan" ?? but it does not return anything On Mon, Aug 13, 2012 at 12:28 PM, Juan Asensio Sánchez wrote: > Well, it looks your filter is incorrect. It should be: > > member=uid=falam,ou=

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Juan Asensio Sánchez
Well, it looks your filter is incorrect. It should be: member=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan memberUid=falam as memberUid is designed to contain only the user uid, not the DN. Regards. 2012/8/13 Fosiul Alam : > i have chagned base

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Fosiul Alam
Ok problem is this works ldapsearch -xZZ -D "cn=Manager" -w 'test' "uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan" but bellow not work ldapsearch -xZZ -D "cn=Manager" -w 'test' "memberUid=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan" but there is user call falam under memberUid but no idea

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Grzegorz Dwornicki
Attribute memberuid require just account uid name doesn't it? Btw. I am getting confused... In you test lab you use uniqemember and now memberuid? Can you explain? Greg. Send from htc desire z 13-08-2012 13:16, "Fosiul Alam" napisał(a): > i have chagned base to dc=fosiul,dc=lan > > also this >

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Fosiul Alam
i have chagned base to dc=fosiul,dc=lan also this ldapsearch -xZZ -D "Manager" -w 'test' -b "l=uk,dc=fosiul,dc=lan" "memberUid=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan" # extended LDIF # # LDAPv3 # base with scope subtree # filter: memberUid=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan # requesti

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Juan Asensio Sánchez
Hi Yes, -b "l=uk,dc=fosiul,dc=lan" (in your message there are 2 double quotes), or, as Grzegorz says, change the base in ldap.conf (the path changes if you on Debian or Red hat based systems, but not sure). Are you still getting the error, or just no entries are returned? If the seconf case, then

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Grzegorz Dwornicki
Hi He ment BASE directive in /etc/openldap/ldap.conf Greg. Send from htc desire z 13-08-2012 12:52, "Fosiul Alam" napisał(a): > Hi thanks > > But > > dapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b "l=uk" > "uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan" > > it does not retur

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Fosiul Alam
Hi thanks But dapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b "l=uk" "uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan" it does not return anything you meant to put dapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b " l=uk,dc=fosiul,dc=lan"" "uniqueMember=uid=falam,ou=use

Re: [389-users] ldapsearch getting wrong base

2012-08-13 Thread Juan Asensio Sánchez
Yo should use parameter "-b" in ldapsearch: ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b "l=uk" "uniqueMember=uid=falam,ou=users,l=uk,dc=fosiul,dc=lan" Or change the default values in ldap.conf. Regards. 2012/8/13 Fosiul Alam : > Hi Bellow search should return some result ( and it

[389-users] ldapsearch getting wrong base

2012-08-13 Thread Fosiul Alam
Hi Bellow search should return some result ( and its working on my test lab) but in production server .. i believe its getting the wrong base : # # base (default) with scope subtree it should be l=uk. bellow is the search : ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' "uniqueMember=u