testing ip address field

This commit is contained in:
Aitzol 2023-04-05 13:10:24 +02:00
parent 86ae827ccf
commit 6f4d1a2cdf
2 changed files with 17 additions and 9 deletions

View File

@ -35,7 +35,9 @@ dn: cn=seiichi takimoto,cn=users,ou=groups,dc=example,dc=org
active: TRUE active: TRUE
cn: seiichi takimoto cn: seiichi takimoto
fakecn: FALSE fakecn: FALSE
device: unknown devices: unknown
lastLogin: 199412161032Z
ip: 185.14.36.84
gidnumber: 501 gidnumber: 501
givenname: seiichi givenname: seiichi
homedirectory: /home/users/seiichi homedirectory: /home/users/seiichi

View File

@ -19,18 +19,24 @@ attributetype ( 2.25.330098197460787237907941808102951680393.1.1 NAME 'fakeC
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
SINGLE-VALUE ) SINGLE-VALUE )
attributetype ( 2.25.330098197460787237907941808102951680393.1.2 NAME 'device' attributetype ( 2.25.330098197460787237907941808102951680393.1.2 NAME 'devices'
DESC 'Trusted devices info from user-agent' DESC 'Trusted devices info from user-agent'
EQUALITY caseIgnoreMatch EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
#attributetype ( 2.25.330098197460787237907941808102951680393.1.2 NAME 'lastAccess' attributetype ( 2.25.330098197460787237907941808102951680393.1.3 NAME 'lastLogin'
# DESC 'Last access timestamp' DESC 'Last login timestamp'
# EQUALITY generalizedTimeMatch EQUALITY generalizedTimeMatch
# SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SYNTAX 1.3.6.1.4.1.1466.115.121.1.24
# SINGLE-VALUE ) SINGLE-VALUE )
attributetype ( 2.25.330098197460787237907941808102951680393.1.4 NAME 'ip'
DESC 'ip address'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE )
objectclass ( 2.25.330098197460787237907941808102951680393.1.2.0 NAME 'accountsManagement' SUP top AUXILIARY objectclass ( 2.25.330098197460787237907941808102951680393.1.2.0 NAME 'accountsManagement' SUP top AUXILIARY
DESC 'Accounts management' DESC 'Accounts management'
MUST ( cn $ uid $ active $ fakeCn $ device ) MUST ( cn $ uid $ active $ fakeCn $ devices )
MAY ( userPassword $ description ) ) MAY ( userPassword $ description $ lastLogin $ ip ) )