[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: ldapsearch filter question
- To: 'Ralf Mattes' <rm@mh-freiburg.de>, Brian Reichert <reichert@numachi.com>
- Subject: RE: ldapsearch filter question
- From: "Zhang,Jun" <JHZhang@mdanderson.org>
- Date: Tue, 3 Jan 2017 22:00:56 +0000
- Accept-language: en-US
- Cc: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Content-language: en-US
- In-reply-to: <6474-586c1800-83-622b0a00@174613342>
- Ironport-phdr: 9a23:KOlaohzM4QFP/4zXCy+O+j09IxM/srCxBDY+r6Qd0uoVKPad9pjvdHbS+e9qxAeQG96Kt7Qd0KGP7vuocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDWwbalvIBi4ogndq8kbjIV/Iast1xXFpWdFdf5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALMTRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTlkzkMOSIn/27Li8xwlKNbrwynpxxj2I7ffYWZOONjcq/BYd8WQGxMVdtTWSNcGIOxd4sBAfQcM+ZEoYfzpFUOohm/BQawC+3gxSRFhmPt0qA+z+gtDR3K0Q4mEtkTsHrUttL1NKIKXOy7z6bIzS/Mb/VZ2Tvl7IbIbxYhrf+RVr93dcTfy0ogFwPfgVWWpozoJDaV2fkXvGid8uVvS/ivi3UgqwF3uDSvwd0siobQi48T11vK9j15zZ4oKdC3RkN3e8OoHIZNuy2AOYZ6WMMvTmFwtCon1rEKo4O3cDUFxZg92hLSaP+Kf5KV7h/iSOqdOTl4i2xmdb6jghu/9FWsx+7gWsS21VtGsypInsXSuX0IyhDc9saKR/V480u/1zuDyhzf5+dZKk4uj6XbMYQuwrsom5oWtkTMAzH5lV3tjK+TakUk4u+o6/n7Yrn+pp+TKYt0igbmP6QrgMO/AOA4PhILX2eG4+u80qDs8lPjQLVRif02lLPVsJfAJcQUvqK5AglV3Zg/6xunEjur39oVkWMaIF5YZR6LlYbkN0vOLf34Ffu/hk6jkDZvx/DIJL3hBZDNI2DHnrnjfrl961RTyAw8zd1E4pJbF6sOIPTuVUDvrtzYFRg5Mwquz+bgEtV92ZsSWXiTDa+BLKPSrViI6/o1I+mJf4IVvTb9J+Er5/70k3A5mEQSfbSz3ZsYcny3A+ppKV2DYXXwmtcBDXsKvg0mQezwllKCUCJcZ3asUKIm+jE2E4SmDZrGRo+3nLOB3Ca7EodKaWBBD1CGCW3oeJmcW/cQdCKSJddskjscVbe/TY8h0QyhuxXiy7Z+Murb5DEXtZLl1Nh0++LcjxUy+CdzD8SFzW6NSWV0kX4SSD8uxqx/plZ9yljQmZR/1rNiHNhdr9ZAThs3LtGUm/Z/I9XyHwzbc9aDVUypBNmrV3V5ZMgwytlGWUt8ENWvlAyLizCnArQVmqaXLJop96vX33m3LMF4nSXozq4k2hMUQsJJOimEm6g1v1zxJ7zJmkOWv6OmfKIQ0TTW82HFynCB6hILGDVsWLnICChMLnDdqs70swabF+ej
- References: <20170103204516.GF89545@numachi.com> <6474-586c1800-83-622b0a00@174613342>
- Thread-index: AdJmAvQBOGnM9/n5SgifpUJ7AQPmKwAMaBQAAAGbRgAAC8+4wA==
- Thread-topic: ldapsearch filter question
I'm working on openldap proxy to AD, gidnumber is assigned for Linux client, by the AD admin. I saw groupofnames objectclass actually only in openldap. I tried it blindly without thinking both sides and the mapping in between first. What you said is true.
-----Original Message-----
From: Ralf Mattes [mailto:rm@mh-freiburg.de]
Sent: Tuesday, January 03, 2017 3:31 PM
To: Brian Reichert
Cc: Zhang,Jun; openldap-technical@openldap.org
Subject: Re: ldapsearch filter question
Am Dienstag, 03. Januar 2017 21:45 CET, Brian Reichert <reichert@numachi.com> schrieb:
> On Tue, Jan 03, 2017 at 08:57:59PM +0000, Zhang,Jun wrote:
> > ldapsearch -x -b dc=myinstitute,dc=edu uid=user1 gidnumber gives me
> > gidnumber=1234 I then tried, ldapsearch -x -b dc=myinstitute,dc=edu
> > "(&(objectclass=groupofnames)(gidnumber=1234))"
> > intending to find out the name of the group, but I got nothing.
>
> Did the DN in your first search have a 'groupofnames' objectclass?
Furthermore - are you shure you want to search for groupofnames and not posixgroup?
Group ID numbers are usually used with POSIX groups and since both posixgroup and groupoufnames are structural groups they can't mix. It's actually pretty unlikely that your server holds groupofnames with a numeric group id.
HTH Ralf Mattes
> >
> > Thanks
> > Jun
> --
> Brian Reichert <reichert@numachi.com>
> BSD admin/developer at large
>
The information contained in this e-mail message may be privileged, confidential, and/or protected from disclosure. This e-mail message may contain protected health information (PHI); dissemination of PHI should comply with applicable federal and state laws. If you are not the intended recipient, or an authorized representative of the intended recipient, any further review, disclosure, use, dissemination, distribution, or copying of this message or any attachment (or the information contained therein) is strictly prohibited. If you think that you have received this e-mail message in error, please notify the sender by return e-mail and delete all references to it and its contents from your systems.