[389-devel] lib389 lack a type for nsAdminGroup

2019-07-23 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 of

[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 yo

[389-devel] Re: Please review

2019-07-16 Thread Anuj Borah
git/tree/testcases/DS/6.0/filter/filter.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

[389-devel] Re: Please review

2019-07-16 Thread Anuj Borah
le: 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 2:21 AM Mark Reynolds wrote: >

[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
) *** NameError: name 'ds_is_older' is not defined 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

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

2019-06-13 Thread Anuj Borah
e putting a byte string into 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, &

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

2019-06-13 Thread Anuj Borah
And finally . Accounts(standalone, DEFAULT_SUFFIX).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 att

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

2019-06-13 Thread Anuj Borah
\xb8\x86\xb4O2\xb5\xda\x0c\xfa\xfc\x081\\\xa3\x80\xb0\x7f\xd6\x1cg}\x89\xa9x\x84o\\\xef\x8e\x83\xfc\xa32\xa8Dl\xcd\xbd\x1bE\x1b8\x9d\xc3\'&\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

[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 exactly.

[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
he test user that was created during 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

[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
;gidNumber': '2000' }) Here i have put userCertificate field manually (which i dont want to do). But how can i achieve this without putting userCertificate field manually . Like create a user and userCertificate field will be auto field with auto generated certificates . Regards

[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: Please review

2019-05-15 Thread Anuj Borah
@Simon Pichugin Please review: https://pagure.io/389-ds-base/pull-request/50328 Regards Anuj Borah On Thu, May 9, 2019 at 5:27 PM Anuj Borah wrote: > @Simon Pichugin > > This one is still pending . > > https://pagure.io/389-ds-base/pull-request/50192 > > Regards >

[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: Please review

2019-05-09 Thread Anuj Borah
@Simon Pichugin This one is still pending . https://pagure.io/389-ds-base/pull-request/50192 Regards Anuj Borah On Tue, Apr 30, 2019 at 4:03 PM Anuj Borah wrote: > Hi Simon , > > Rebsed onto master . > > Regards > Anuj Borah > > On Tue, Apr 30, 2019 at 3:54 PM

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

2019-05-08 Thread Anuj Borah
FFIX).filter(F4)[0].get_attr_val_utf8('CN') 'Benjamin Hall' (Pdb) Accounts(topo.standalone, DEFAULT_SUFFIX).filter(F4)[0].get_attr_val_utf8('cn') 'Benjamin Hall' (Pdb) Accounts(topo.standalone, DEFAULT_SUFFIX).filter(F4)[0].get_attr_val_utf8('Cn') 'Ben

[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 facing t

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

2019-05-08 Thread Anuj Borah
fyTimestamp can never get with filter . Regards Anuj Borah On Wed, May 8, 2019 at 6:08 AM William Brown wrote: > > > > On 7 May 2019, at 23:56, Viktor Ashirov wrote: > > > > On Tue, May 7, 2019 at 2:09 PM William Brown wrote: > >> > >> > >>

[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-06 Thread Anuj Borah
eople,dc=example,dc=com ] Question these filter also: >>>> Accounts(...).filter(F10, ['mailquota', 'nsRoleDN']) Regards Anuj Borah On Tue, May 7, 2019 at 5:22 AM William Brown wrote: > You are missing a key part of the question again: "Is there any chan

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

2019-05-03 Thread Anuj Borah
N']) >> [dn: uid=mtyler,ou=People,dc=example,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 wr

[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 To

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

2019-04-28 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

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

2019-04-28 Thread Anuj Borah
> *** ldap.FILTER_ERROR: {'desc': '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 wrot

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

2019-04-28 Thread Anuj Borah
estUserAccountControl']")) *** ldap.FILTER_ERROR: {'desc': 'Bad search filter', 'errno': 2, 'info': 'No such file or directory'} Again i have to use "re" module for the same . Regards Anuj Borah On Mon, Apr 29, 2019 at 7:49 A

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

2019-04-28 Thread Anuj Borah
) And This one . topo.standalone.search_s(DEFAULT_SUFFIX, ldap.SCOPE_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

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

2019-04-28 Thread Anuj Borah
rAccountControl:1.2.840.113556.1.4.804:=16777216",['attrlist=cn:sn:uid:testUserAccountControl']) 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 Bor

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

2019-04-25 Thread Anuj Borah
d=cschmith,ou=People,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 w

[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
groupOfUniqueNames . This may be the problem . You can not find any error in access logs as naturally it does not have any error , 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

[389-devel] Groups are not accessible by filter

2019-04-24 Thread Anuj Borah
n)(uid=scarter))', '(&(objectclass=organizationalperson)(uid=scarter))', '(objectclass=inetorgperson)', '(&(objectclass=organizationalPerson)(sn=Jensen))', '(&(mail=*)(objectclass=organizationalPerson))'

[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] UserAccounts creates users with junk sign

2019-03-25 Thread Anuj Borah
for i in users.list(): i.dn 'cn=NONE_2_KEY,ou=Authmethod,ou=Keywords,dc=example,dc=com' 'cn=EVERYDAY_KEY,ou=Dayofweek,ou=Keywords,dc=example,dc=com' 'cn=TODAY_KEY,ou=Dayofweek,ou=Keywords,dc=example,dc=com' 'cn=NODAY_KEY,ou=Dayofweek,ou=Keywords,dc=example,dc=com&#

[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
Feb 26, 2019 at 5:06 AM William 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

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

2019-02-25 Thread Anuj Borah
yet fixed: https://pagure.io/389-ds-base/issue/50137 Please check attached test case . Regards Anuj Borah # --- BEGIN COPYRIGHT BLOCK --- # Copyright (C) 2019 RED Hat, Inc. # All rights reserved. # # License: GPL (version 3 or any later version). # See LICENSE for details. # --- END COPYRIGHT BLOCK

[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 To

[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] creating a universal class to replace "Entry"

2019-02-10 Thread Anuj Borah
properties = { 'cosTemplateDn': ['ou=MailSchemeClasses, ou=COS, dc=example, dc=com'], 'cosSpecifier': 'emailclass', 'cosAttribute': ['mailquota', 'multiLineDescrip

[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
sUserAccountRoles which i renamed to nsFilterAccountRole and nsFilterAccountRoles will only cover filter role as you cant create 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

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

2019-01-17 Thread Anuj Borah
7;:'cn=*'} user.create(properties=user_props, basedn=SUFFIX) nsUserAccountRoles(topo.standalone, DEFAULT_SUFFIX).list()[0].dn >> 'cn=tuser1,ou=People,dc=example,dc=com' nsUserAccountRoles(topo.standalone, DEFAULT_SUFFIX).create(properties=user_props) >>> nsUse

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

2019-01-14 Thread Anuj Borah
nsRoleFilter, "description": description, } user = UserAccountnsRole(instance, dn) user.create(properties=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