[389-devel] lib389 lack a type for nsAdminGroup

2019-07-24 Thread Anuj Borah
Hi all, Please correct me if subject line a wrong , as i cat not find one . Regards Anuj Borah ___ 389-devel mailing list -- 389-devel@lists.fedoraproject.org To unsubscribe send an email to 389-devel-le...@lists.fedoraproject.org Fedora Code

[389-devel] Re: Please review

2019-07-17 Thread Anuj Borah
@Mark Reynolds Thanks and welcome . Regards Anuj Borah On Wed, Jul 17, 2019 at 7:31 PM Mark Reynolds wrote: > > On 7/16/19 8:12 PM, Anuj Borah wrote: > > @Mark Reynolds > > @Mark Reynolds > > >>> The code itself looks fine to me, but I find it odd

[389-devel] Re: Please review

2019-07-16 Thread Anuj Borah
sh LDIF FIle: http://git.app.eng.bos.redhat.com/git/dirsrv-tests.git/tree/data/DS/6.0/filter/en/mrsearchtests.ldif LDIF FIle: http://git.app.eng.bos.redhat.com/git/dirsrv-tests.git/tree/data/DS/6.0/filter/en/booleanMatch.add.ldif Regards Anuj Borah On Wed, Jul 17, 2019 at 5:38 AM Anuj Borah wrote: > @Mark Reyno

[389-devel] Re: Please review

2019-07-16 Thread Anuj Borah
t/dirsrv-tests.git/tree/data/DS/6.0/filter/en/mrsearchtests.ldif LDIF FIle: http://git.app.eng.bos.redhat.com/git/dirsrv-tests.git/tree/data/DS/6.0/filter/en/booleanMatch.add.ldif Regards Anuj Borah On Wed, Jul 17, 2019 at 2:21 AM Mark Reynolds wrote: > > On 7/15/19 8:00 AM, Anuj Borah wr

[389-devel] Re: Please review

2019-07-15 Thread Anuj Borah
@Simon Pichugin Please review: https://pagure.io/389-ds-base/pull-request/50468 https://pagure.io/389-ds-base/pull-request/50471 https://pagure.io/389-ds-base/pull-request/50482 Regards AB A On Tue, May 21, 2019 at 4:17 PM Anuj Borah wrote: > @Simon Pichugin > > Please review:

[389-devel] *** NameError: name 'ds_is_older' is not defined

2019-06-13 Thread Anuj Borah
Regards Anuj Borah ___ 389-devel mailing list -- 389-devel@lists.fedoraproject.org To unsubscribe send an email to 389-devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https

[389-devel] Re: How to create a user with certificate with lib389

2019-06-13 Thread Anuj Borah
nto an f string so that formats > with escapes. Have you tried ensure_str() instead? > > > > > On 13 Jun 2019, at 15:29, Anuj Borah wrote: > > > > Yes, it is. but with escape_bytes function only. > > > > (Pdb) Accounts(standalone, > DEFAULT_SUFFIX).filte

[389-devel] Re: How to create a user with certificate with lib389

2019-06-13 Thread Anuj Borah
).filter(f"(userCertificate={escape_bytes(crt)})") >>> escape_bytes(this is function i want to put in utils.py) [] On Thu, Jun 13, 2019 at 6:56 PM William Brown wrote: > Is the test case *just* testing if binary searching of attributes works? > > > On 13 Jun 2019, at 1

[389-devel] Re: How to create a user with certificate with lib389

2019-06-13 Thread Anuj Borah
amp;\xd5\xc5\xa2\xfe5\xfe7un\xd9\xba\xf9[=\x16\x99\xd0(\xf2v\xef3\x1b\x1bd\xba\xdc\xd45W\xef\x8c\xe8F\xe0\x81\x1e\xdcA\xb1A\x12\xbc\xec:\xddI\xa7{\x08\xb2\xcb\x84\xd3\xa8i\xb2\xd7\x81' > > > > > > (Pdb) Accounts(standalone, > DEFAULT_SUFFIX).filter(f"(userCertifi

[389-devel] Re: How to create a user with certificate with lib389

2019-06-13 Thread Anuj Borah
On Thu, Jun 13, 2019 at 6:05 PM William Brown wrote: > > > > On 13 Jun 2019, at 14:27, Anuj Borah wrote: > > > > > > Okay, so: > > * WHAT is the test you are creating? What does it test? How? What steps > from start to finish? Please list this exac

[389-devel] Re: How to create a user with certificate with lib389

2019-06-13 Thread Anuj Borah
@William Brown Please check the attached test case . I want to put escape_bytes function to lib389 utils.py file . Regards Anuj Borah On Mon, Jun 10, 2019 at 2:18 PM William Brown wrote: > > > > On 9 Jun 2019, at 03:40, Anuj Borah wrote: > > > > @William Br

[389-devel] Re: How to create a user with certificate with lib389

2019-06-08 Thread Anuj Borah
@William Brown Yes, it does. Currently i am porting this bug https://bugzilla.redhat.com/show_bug.cgi?id=170520 I think with help of this script it will be impossible to port it . Do you have any advice . Regards Anuj Borah On Fri, Jun 7, 2019 at 2:47 PM William Brown wrote: > I have

[389-devel] Re: How to create a user with certificate with lib389

2019-06-04 Thread Anuj Borah
the test . while i do _unsafe_raw_entry() Also mind changing the lib389 doc https://spichugi.fedorapeople.org/html/guidelines.html#setting-up-ssl-tls . Its the same test case given there , which is not relevant now . Regards Anuj Borah On Tue, Jun 4, 2019 at 9:08 PM William Brown wrote: >

[389-devel] Re: How to create a user with certificate with lib389

2019-06-04 Thread Anuj Borah
@William Brown This test script does not pass . Its too old . Regards Anuj Borah On Tue, Jun 4, 2019 at 8:00 PM William Brown wrote: > Have a look at this test case if you want to do usercertificate generation > and authentication :) > > > https://pagure.io/389-ds-base/bl

[389-devel] How to create a user with certificate with lib389

2019-06-04 Thread Anuj Borah
cate field will be auto field with auto generated certificates . Regards Anuj Borah ___ 389-devel mailing list -- 389-devel@lists.fedoraproject.org To unsubscribe send an email to 389-devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedor

[389-devel] Re: Please review

2019-05-21 Thread Anuj Borah
@Simon Pichugin Please review: https://pagure.io/389-ds-base/pull-request/50336 Regards Anuj Borah On Wed, May 15, 2019 at 8:50 PM Anuj Borah wrote: > @Simon Pichugin > > Please review: > > https://pagure.io/389-ds-base/pull-request/50328 > > Regards > Anuj Bor

[389-devel] Re: Use of rust for new logging backend

2019-05-15 Thread Anuj Borah
Hi I will also help from QA team(Test and automation ) , i started learning "rust" 6 month ago (not regular ). I know 2% (may be). Regards Anuj Borah On Wed, May 15, 2019 at 8:20 PM Simon Pichugin wrote: > On Tue, May 14, 2019 at 01:21:28PM +1000, William Brown wrote: > >

[389-devel] Re: Groups are not accessible by filter

2019-05-08 Thread Anuj Borah
].get_attr_val_utf8('cn') 'Benjamin Hall' (Pdb) Accounts(topo.standalone, DEFAULT_SUFFIX).filter(F4)[0].get_attr_val_utf8('Cn') 'Benjamin Hall' Regards Anuj Borah On Thu, May 9, 2019 at 9:00 AM Anuj Borah wrote: > @William Brown > > Thank you for the clarification. > > Regards > Anu

[389-devel] Re: Groups are not accessible by filter

2019-05-08 Thread Anuj Borah
@William Brown Thank you for the clarification. Regards Anuj Borah On Thu, May 9, 2019 at 8:57 AM William Brown wrote: > > > > On 9 May 2019, at 12:47, Anuj Borah wrote: > > > > @William Brown > > > > I am attaching the main script where i am faci

[389-devel] Re: Groups are not accessible by filter

2019-05-06 Thread Anuj Borah
Ok, I will check. Thanks On Tue, May 7, 2019 at 8:21 AM William Brown wrote: > > > On 7 May 2019, at 11:31, Anuj Borah wrote: > > > > @William Brown > > > > Actually my concern was as bellow: > > > > topo.standalone.search_s(DEFAULT_SUFFI

[389-devel] Re: Groups are not accessible by filter

2019-05-03 Thread Anuj Borah
ample,dc=com mailquota: 600 nsRoleDN: cn=new managed role,ou=People,dc=example,dc=com ] Regards Anuj Borah On Mon, Apr 29, 2019 at 12:29 PM Anuj Borah wrote: > Yes, it is. > > On Mon, Apr 29, 2019 at 11:17 AM William Brown wrote: > >> >> >> > On 29 Ap

[389-devel] Re: Please review

2019-04-30 Thread Anuj Borah
Hi Simon , Rebsed onto master . Regards Anuj Borah On Tue, Apr 30, 2019 at 3:54 PM Simon Pichugin wrote: > On Tue, Apr 30, 2019 at 02:15:55PM +0530, Anuj Borah wrote: > >Hi all, > Hi Anuj, > > >Please review these PRs. > >Pending from Long Time. > &g

[389-devel] Please review

2019-04-30 Thread Anuj Borah
Hi all, Please review these PRs. Pending from Long Time. https://pagure.io/389-ds-base/pull-request/50180 https://pagure.io/389-ds-base/pull-request/50192 Regards Anuj Borah ___ 389-devel mailing list -- 389-devel@lists.fedoraproject.org

[389-devel] Re: Groups are not accessible by filter

2019-04-29 Thread Anuj Borah
Yes, it is. On Mon, Apr 29, 2019 at 11:17 AM William Brown wrote: > > > > On 29 Apr 2019, at 15:00, Anuj Borah wrote: > > > > @William Brown > > > > Sorry my bad , syntax was wrong . > > > > (Pdb) len(Accounts(topo.standalone, &

[389-devel] Re: Groups are not accessible by filter

2019-04-28 Thread Anuj Borah
@William Brown Sorry my bad , syntax was wrong . (Pdb) len(Accounts(topo.standalone, DEFAULT_SUFFIX).filter("(testUserAccountControl:1.2.840.113556.1.4.803:=8388608, ['attrlist=cn:sn:uid:testUserAccountControl'])")) 6 Thanks . On Mon, Apr 29, 2019 at 10:26 AM Anuj Borah wrote:

[389-devel] Re: Groups are not accessible by filter

2019-04-28 Thread Anuj Borah
'Bad search filter', 'errno': 2, 'info': 'No such file or directory'} Regards Anuj Borah On Mon, Apr 29, 2019 at 10:17 AM William Brown wrote: > > > > On 29 Apr 2019, at 12:33, Anuj Borah wrote: > > > > @William Brown > > > > Thanks for the tip! > > &g

[389-devel] Re: Groups are not accessible by filter

2019-04-28 Thread Anuj Borah
_SUBTREE,"testUserAccountControl:1.2.840.113556.1.4.804:=16777216",['attrlist=cn:sn:uid:testUserAccountControl']) Regards Anuj Borah On Mon, Apr 29, 2019 at 7:38 AM William Brown wrote: > > > > On 29 Apr 2019, at 11:53, Anuj Borah wrote: > > > > @William Brown >

[389-devel] Re: Groups are not accessible by filter

2019-04-28 Thread Anuj Borah
UserAccountControl']) There is no way we can use filter for the above cases . Regards Anuj Borah On Mon, Apr 29, 2019 at 4:41 AM William Brown wrote: > > > > On 26 Apr 2019, at 01:56, Anuj Borah wrote: > > > > @Ludwig > > > > Under the same condition . >

[389-devel] Re: Groups are not accessible by filter

2019-04-25 Thread Anuj Borah
,dc=example,dc=com This is the problem . Regards On Thu, Apr 25, 2019 at 9:14 PM Ludwig wrote: > > > On 04/25/2019 05:38 PM, Anuj Borah wrote: > > @Ludwig > > Try running these Two scrips one is with filter and other is with > search_s. > > I will then also get

[389-devel] Re: Groups are not accessible by filter

2019-04-25 Thread Anuj Borah
@Ludwig Try running these Two scrips one is with filter and other is with search_s. Problem is with search_s i am getting correct result , where with filter wrong result. Regards Anuj Borah On Thu, Apr 25, 2019 at 8:30 PM Ludwig wrote: > what is your problem ? the searches in both acc

[389-devel] Re: Groups are not accessible by filter

2019-04-25 Thread Anuj Borah
, its just empty results . Regards Anuj Borah On Thu, Apr 25, 2019 at 12:39 PM Ludwig wrote: > can you provide the access logs to show what searches were really done > > On 04/24/2019 12:23 PM, Anuj Borah wrote: > > Hi all, > > Please consider bellow condition . > >

[389-devel] Groups are not accessible by filter

2019-04-24 Thread Anuj Borah
;(sn=Rentz)(objectclass=organizationalPerson))', '(&(sn=Ward)(sn=Ward))', '(sn=Jensen)', '(sn=*)', '(sn=*utz)']: assert topo.standalone.search_s(DEFAULT_SUFFIX, ldap.SCOPE_SUBTREE, i) I have attached the test script too . Test test_various_combinati

[389-devel] Re: UserAccounts creates users with junk sign

2019-03-26 Thread Anuj Borah
@William Brown Thanks for the reply . I was wondering if UserAccount can do it , why UserAccounts cant . Anyway now i will go for 3. (best) to solve the problem. Thanks Anuj Borah On Wed, Mar 27, 2019 at 5:45 AM William Brown wrote: > Hi, > > I have previously commented a number

[389-devel] Please review

2019-02-28 Thread Anuj Borah
Hi all, Please review bellow PR: https://pagure.io/389-ds-base/pull-request/50178 Its pending from long time . Regards Anuj Borah ___ 389-devel mailing list -- 389-devel@lists.fedoraproject.org To unsubscribe send an email to 389-devel-le

[389-devel] Re: Filter does not work with Anonymous connection

2019-02-26 Thread Anuj Borah
@Matus Honek Yes, I agree. Perhaps we should open one ticket in pagur to track this issue ? Regards Anuj Borah On Tue, Feb 26, 2019 at 9:12 PM Matus Honek wrote: > This kinda leads me to thinking we should implement ACIs management > within the DSLdapObjects like this (probably sp

[389-devel] Re: Fwd: Filter does not work with Anonymous connection

2019-02-25 Thread Anuj Borah
am Brown wrote: > > > > On 26 Feb 2019, at 05:09, Anuj Borah wrote: > > > > > > > > Hi all, > > > > We have recently implemented Filter and Anonymous to lib389 . But it > seems like Filter does not work with Anonymous connection . > > It ac

[389-devel] Pleas review

2019-02-19 Thread Anuj Borah
Hi all, Please review bellow PRs: https://pagure.io/389-ds-base/pull-request/50180 https://pagure.io/389-ds-base/pull-request/50168 Its pending from long time. Regards Anuj Borah ___ 389-devel mailing list -- 389-devel@lists.fedoraproject.org

[389-devel] Re: creating a universal class to replace "Entry"

2019-02-10 Thread Anuj Borah
@William Brown Thanks for the reply , please look into the PR: https://pagure.io/389-ds-base/pull-request/50171 Its to create nsfilterrole . On Mon, Feb 11, 2019 at 1:06 PM William Brown wrote: > > > > On 11 Feb 2019, at 17:01, Anuj Borah wrote: > > > > Hi, > >

[389-devel] Re: [discuss] composable object types in lib389

2019-01-22 Thread Anuj Borah
@Ludwig Krispenz The script i have attached in my previous mail was ported from the TET script . Now i am attaching the main bash script , please check it out. On Tue, Jan 22, 2019 at 1:48 PM Ludwig wrote: > > > On 01/22/2019 08:57 AM, Anuj Borah wrote: > > @Ludwig Krisp

[389-devel] Re: [discuss] composable object types in lib389

2019-01-21 Thread Anuj Borah
@Ludwig Krispenz , exactly, Please check attached script , how it is implemented . Filter role and aci combination . On Tue, Jan 22, 2019 at 1:13 PM Ludwig wrote: > > > On 01/21/2019 11:01 PM, William Brown wrote: > > > >> On 21 Jan 2019, at 17:08, Anuj Borah wr

[389-devel] Re: [discuss] composable object types in lib389

2019-01-20 Thread Anuj Borah
Filter role and other roles like Manage role all together . For my porting stuff newly created nsFilterAccountRole and nsFilterAccountRoles is more than enough because i need filter roles only . Hope it clears all of your doubts. Regards Anuj Borah On Fri, Jan 18, 2019 at 4:24 AM William Brown

[389-devel] Re: [discuss] composable object types in lib389

2019-01-17 Thread Anuj Borah
create(properties=user_props) >>> nsUserAccountRoles(topo.standalone, DEFAULT_SUFFIX).list()[1].dn >>> 'cn=Anuj,ou=People,dc=example,dc=com' Let me know , what you think . Regards Anuj Borah On Tue, Jan 15, 2019 at 6:30 AM William Brown wrote: > > > On 14 Jan

[389-devel] Re: [discuss] composable object types in lib389

2019-01-14 Thread Anuj Borah
erties=properties) return user Now just using create_test_user_nsrole we will be able to create entries with nsRoles. Regards Anuj Borah On Mon, Jan 7, 2019 at 2:30 PM William Brown wrote: > Hi, > > I’ve been speaking to Anuj Borah about a PR they made, and how we can > properly