summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/ldapd/Makefile5
-rw-r--r--usr.sbin/ldapd/schema/bsd.schema16
2 files changed, 19 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/Makefile b/usr.sbin/ldapd/Makefile
index bf445832576..2e9d1fb28e8 100644
--- a/usr.sbin/ldapd/Makefile
+++ b/usr.sbin/ldapd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.16 2019/05/11 17:46:02 rob Exp $
+# $OpenBSD: Makefile,v 1.17 2020/09/19 09:46:04 tb Exp $
PROG= ldapd
MAN= ldapd.8 ldapd.conf.5
@@ -17,7 +17,8 @@ CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual
CFLAGS+= -Wsign-compare
CLEANFILES+= y.tab.h parse.c
-SCHEMA_FILES= core.schema \
+SCHEMA_FILES= bsd.schema \
+ core.schema \
inetorgperson.schema \
nis.schema
diff --git a/usr.sbin/ldapd/schema/bsd.schema b/usr.sbin/ldapd/schema/bsd.schema
new file mode 100644
index 00000000000..b21fabacbf4
--- /dev/null
+++ b/usr.sbin/ldapd/schema/bsd.schema
@@ -0,0 +1,16 @@
+attributetype ( 1.3.6.1.4.1.30155.115.2 NAME 'shadowPassword'
+ DESC 'POSIX hashed password'
+ EQUALITY caseExactIA5Match
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.30155.115.3 NAME 'sshPublicKey'
+ DESC 'OpenSSH public key'
+ EQUALITY caseExactIA5Match
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+objectclass ( 1.3.6.1.4.1.30155.115.1 NAME 'bsdAccount'
+ SUP top
+ AUXILIARY
+ DESC 'Abstraction of an account with OpenBSD attributes'
+ MAY ( uid $ shadowPassword $ shadowExpire $ modifyTimestamp $
+ userClass $ sshPublicKey ))