summaryrefslogtreecommitdiff
path: root/examples/LDAP/get_next_oid
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-08-20 15:38:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:25 -0500
commitfeea4517e35c3c2d960945e783f1efc29250f2dd (patch)
treed4435023d08ebe415a88d09dc4cfa283408a6080 /examples/LDAP/get_next_oid
parent7b568196788a0c9239c33add7ed1b20c2685ca1f (diff)
downloadsamba-feea4517e35c3c2d960945e783f1efc29250f2dd.tar.gz
samba-feea4517e35c3c2d960945e783f1efc29250f2dd.tar.bz2
samba-feea4517e35c3c2d960945e783f1efc29250f2dd.zip
r1962: fixing schema file; synching with trunk; trying to prevent this from happening again
(This used to be commit f1a0fae13fa2e6baf66c4c5a51bef87d442d9ba6)
Diffstat (limited to 'examples/LDAP/get_next_oid')
-rw-r--r--examples/LDAP/get_next_oid11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/LDAP/get_next_oid b/examples/LDAP/get_next_oid
new file mode 100644
index 0000000000..54af6301f1
--- /dev/null
+++ b/examples/LDAP/get_next_oid
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+nextattrib=`cat samba.schema | grep -i attributetype.*\(.*1.3.6.1.4.1.7165. | awk '{print $3}' | cut -d. -f 10 | tail -1`
+(( nextattrib += 1 ))
+
+echo "attributetype ( 1.3.6.1.4.1.7165.2.1.$nextattrib NAME ...."
+
+nextoc=`cat samba.schema | grep -i objectclass.*\(.*1.3.6.1.4.1.7165. | awk '{print $3}' | cut -d. -f 10 | tail -1`
+(( nextoc += 1 ))
+
+echo "objectclass ( 1.3.6.1.4.1.7165.2.2.$nextoc NAME ...."