From 6f4d1a2cdf4e6e5d2e2c1113f03f86648999339c Mon Sep 17 00:00:00 2001 From: Aitzol Date: Wed, 5 Apr 2023 13:10:24 +0200 Subject: [PATCH] testing ip address field --- backup/export.ldif | 4 +++- schema/custom.schema | 22 ++++++++++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/backup/export.ldif b/backup/export.ldif index f9f72a8..c3c7fb4 100644 --- a/backup/export.ldif +++ b/backup/export.ldif @@ -35,7 +35,9 @@ dn: cn=seiichi takimoto,cn=users,ou=groups,dc=example,dc=org active: TRUE cn: seiichi takimoto fakecn: FALSE -device: unknown +devices: unknown +lastLogin: 199412161032Z +ip: 185.14.36.84 gidnumber: 501 givenname: seiichi homedirectory: /home/users/seiichi diff --git a/schema/custom.schema b/schema/custom.schema index 3f8e234..9427ab2 100644 --- a/schema/custom.schema +++ b/schema/custom.schema @@ -19,18 +19,24 @@ attributetype ( 2.25.330098197460787237907941808102951680393.1.1 NAME 'fakeC SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 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' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) -#attributetype ( 2.25.330098197460787237907941808102951680393.1.2 NAME 'lastAccess' -# DESC 'Last access timestamp' -# EQUALITY generalizedTimeMatch -# SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 -# SINGLE-VALUE ) +attributetype ( 2.25.330098197460787237907941808102951680393.1.3 NAME 'lastLogin' + DESC 'Last login timestamp' + EQUALITY generalizedTimeMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 + 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 DESC 'Accounts management' - MUST ( cn $ uid $ active $ fakeCn $ device ) - MAY ( userPassword $ description ) ) + MUST ( cn $ uid $ active $ fakeCn $ devices ) + MAY ( userPassword $ description $ lastLogin $ ip ) )