Exemplo n.º 1
0
def nonfas_user(ipa_testing_config, app):
    ipa_admin.user_add(
        a_uid="nonfas-user",
        o_givenname="NonFAS",
        o_sn="User",
        o_cn="NonFAS User",
        o_mail="*****@*****.**",
        o_userpassword="******",
    )
    yield
    ipa_admin.user_del("nonfas-user")
Exemplo n.º 2
0
def dummy_user_expired_password():
    ipa_admin.user_add(
        a_uid='dummy',
        o_givenname='Dummy',
        o_sn='User',
        o_cn='Dummy User',
        o_userpassword='******',
        o_loginshell='/bin/bash',
    )
    # Don't change the password: it will be expired
    yield
    ipa_admin.user_del(a_uid='dummy')
Exemplo n.º 3
0
 def _make_user(name):
     now = datetime.datetime.utcnow().replace(microsecond=0)
     password = f'{name}_password'
     ipa_admin.user_add(
         a_uid=name,
         o_givenname=name.title(),
         o_sn='User',
         o_cn=f'{name.title()} User',
         o_mail=f"{name}@example.com",
         o_userpassword=password,
         o_loginshell='/bin/bash',
         fascreationtime=f"{now.isoformat()}Z",
     )
     ipa = untouched_ipa_client(app)
     ipa.change_password(name, password, password)
     created_users.append(name)