[389-devel] 389 DS nightly 2019-06-05 - 95% PASS

2019-06-04 Thread vashirov
https://fedorapeople.org/groups/389ds/ci/nightly/2019/06/05/report-389-ds-base-1.4.1.3-20190604git7596ca0.fc30.x86_64.html
___
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://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org


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

2019-06-04 Thread Anuj Borah
@William Brown 

Thanks , I am doing the same . Trying to follow it . (i have make this
script 99% pass)

But its way too old . It uses some like :

standalone.nss_ssl.create_rsa_user('testuser')    not valid
(NssSsl(standalone).create_rsa_user('testuser'))

standalone.nss_ssl.get_rsa_user('testuser')   -- not valid
(NssSsl(standalone).get_rsa_user('testuser'))

standalone.openConnection ---  I dont know what is it . May be bind.

And Most importantly, after i have make this script 99% pass . I am not
able to see the usercertificate field in the 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 at 9:08 PM William Brown  wrote:

> I'm currently traveling at the moment, but I can have a look later to
> update this to work on latest lib389 etc.
>
> You can read it and use it as an example though, even if it doesn't pass
> ...
>
>
>
>
> > On 4 Jun 2019, at 16:32, Anuj Borah  wrote:
> >
> > @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/blob/master/f/src/lib389/lib389/tests/tls_external_test.py
> >
> > > On 4 Jun 2019, at 14:31, Anuj Borah  wrote:
> > >
> > > Hi all,
> > >
> > > Let say i want to create a user with userCertificate fileld. My user
> will look like bellow.
> > >
> > > users_people = UserAccounts(topo.standalone, DEFAULT_SUFFIX)
> > > users_people.create(properties={
> > > 'uid': 'certUser2',
> > > 'cn': 'CUser2',
> > > 'sn': 'CertificateUser2',
> > > 'givenName': 'CU2',
> > > 'description': "This is certUser2's description",
> > > 'mail': 'certus...@example.com',
> > > 'userPassword': PW_DM,
> > > 'userCertificate':
> 'some_cert_+++NUhz+Rigq7xT5g0Jqo1gXq1jJFdCw==',
> > > 'manager': f'uid=certUser2,ou=People,{DEFAULT_SUFFIX}',
> > > 'homeDirectory': '/home/' + 'certUser2',
> > > 'uidNumber': '1000',
> > > '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
> > > 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://fedoraproject.org/wiki/Mailing_list_guidelines
> > > List Archives:
> https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org
> >
> > —
> > Sincerely,
> >
> > William Brown
> >
> > Senior Software Engineer, 389 Directory Server
> > SUSE Labs
> > ___
> > 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://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives:
> https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org
>
> —
> Sincerely,
>
> William Brown
>
> Senior Software Engineer, 389 Directory Server
> SUSE Labs
>
>
___
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://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org


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

2019-06-04 Thread William Brown
I'm currently traveling at the moment, but I can have a look later to update 
this to work on latest lib389 etc.

You can read it and use it as an example though, even if it doesn't pass ... 




> On 4 Jun 2019, at 16:32, Anuj Borah  wrote:
> 
> @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/blob/master/f/src/lib389/lib389/tests/tls_external_test.py
> 
> > On 4 Jun 2019, at 14:31, Anuj Borah  wrote:
> > 
> > Hi all,
> > 
> > Let say i want to create a user with userCertificate fileld. My user will 
> > look like bellow.
> > 
> > users_people = UserAccounts(topo.standalone, DEFAULT_SUFFIX)
> > users_people.create(properties={
> > 'uid': 'certUser2',
> > 'cn': 'CUser2',
> > 'sn': 'CertificateUser2',
> > 'givenName': 'CU2',
> > 'description': "This is certUser2's description",
> > 'mail': 'certus...@example.com',
> > 'userPassword': PW_DM,
> > 'userCertificate': 'some_cert_+++NUhz+Rigq7xT5g0Jqo1gXq1jJFdCw==',
> > 'manager': f'uid=certUser2,ou=People,{DEFAULT_SUFFIX}',
> > 'homeDirectory': '/home/' + 'certUser2',
> > 'uidNumber': '1000',
> > '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
> > 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://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives: 
> > https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org
> 
> —
> Sincerely,
> 
> William Brown
> 
> Senior Software Engineer, 389 Directory Server
> SUSE Labs
> ___
> 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://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org

—
Sincerely,

William Brown

Senior Software Engineer, 389 Directory Server
SUSE Labs
___
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://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org


[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/blob/master/f/src/lib389/lib389/tests/tls_external_test.py
>
> > On 4 Jun 2019, at 14:31, Anuj Borah  wrote:
> >
> > Hi all,
> >
> > Let say i want to create a user with userCertificate fileld. My user
> will look like bellow.
> >
> > users_people = UserAccounts(topo.standalone, DEFAULT_SUFFIX)
> > users_people.create(properties={
> > 'uid': 'certUser2',
> > 'cn': 'CUser2',
> > 'sn': 'CertificateUser2',
> > 'givenName': 'CU2',
> > 'description': "This is certUser2's description",
> > 'mail': 'certus...@example.com',
> > 'userPassword': PW_DM,
> > 'userCertificate':
> 'some_cert_+++NUhz+Rigq7xT5g0Jqo1gXq1jJFdCw==',
> > 'manager': f'uid=certUser2,ou=People,{DEFAULT_SUFFIX}',
> > 'homeDirectory': '/home/' + 'certUser2',
> > 'uidNumber': '1000',
> > '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
> > 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://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives:
> https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org
>
> —
> Sincerely,
>
> William Brown
>
> Senior Software Engineer, 389 Directory Server
> SUSE Labs
> ___
> 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://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org
>
___
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://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org


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

2019-06-04 Thread William Brown
Have a look at this test case if you want to do usercertificate generation and 
authentication :) 

https://pagure.io/389-ds-base/blob/master/f/src/lib389/lib389/tests/tls_external_test.py

> On 4 Jun 2019, at 14:31, Anuj Borah  wrote:
> 
> Hi all,
> 
> Let say i want to create a user with userCertificate fileld. My user will 
> look like bellow.
> 
> users_people = UserAccounts(topo.standalone, DEFAULT_SUFFIX)
> users_people.create(properties={
> 'uid': 'certUser2',
> 'cn': 'CUser2',
> 'sn': 'CertificateUser2',
> 'givenName': 'CU2',
> 'description': "This is certUser2's description",
> 'mail': 'certus...@example.com',
> 'userPassword': PW_DM,
> 'userCertificate': 'some_cert_+++NUhz+Rigq7xT5g0Jqo1gXq1jJFdCw==',
> 'manager': f'uid=certUser2,ou=People,{DEFAULT_SUFFIX}',
> 'homeDirectory': '/home/' + 'certUser2',
> 'uidNumber': '1000',
> '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
> 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://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org

—
Sincerely,

William Brown

Senior Software Engineer, 389 Directory Server
SUSE Labs
___
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://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org


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

2019-06-04 Thread Anuj Borah
Hi all,

Let say i want to create a user with userCertificate fileld. My user will
look like bellow.

users_people = UserAccounts(topo.standalone, DEFAULT_SUFFIX)
users_people.create(properties={
'uid': 'certUser2',
'cn': 'CUser2',
'sn': 'CertificateUser2',
'givenName': 'CU2',
'description': "This is certUser2's description",
'mail': 'certus...@example.com',
'userPassword': PW_DM,
'userCertificate': 'some_cert_+++NUhz+Rigq7xT5g0Jqo1gXq1jJFdCw==',
'manager': f'uid=certUser2,ou=People,{DEFAULT_SUFFIX}',
'homeDirectory': '/home/' + 'certUser2',
'uidNumber': '1000',
'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
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://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/389-devel@lists.fedoraproject.org