summaryrefslogtreecommitdiff
path: root/examples/LDAP/get_next_oid
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-08-20 15:54:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:25 -0500
commit455bc1db4113ed8248cb8d7f41a30899f5aace81 (patch)
treed055c1c835fa656851b63b2f3885efc2cf9b0499 /examples/LDAP/get_next_oid
parentfeea4517e35c3c2d960945e783f1efc29250f2dd (diff)
downloadsamba-455bc1db4113ed8248cb8d7f41a30899f5aace81.tar.gz
samba-455bc1db4113ed8248cb8d7f41a30899f5aace81.tar.bz2
samba-455bc1db4113ed8248cb8d7f41a30899f5aace81.zip
r1964: more schema fixes syncing between branches
(This used to be commit 49fba32217d9a9a186a28805011bdb567ac968de)
Diffstat (limited to 'examples/LDAP/get_next_oid')
-rw-r--r--examples/LDAP/get_next_oid8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/LDAP/get_next_oid b/examples/LDAP/get_next_oid
index 54af6301f1..bf00200375 100644
--- a/examples/LDAP/get_next_oid
+++ b/examples/LDAP/get_next_oid
@@ -1,11 +1,15 @@
#!/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=`cat samba.schema | grep -i attributetype.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | \
+ awk '{print $3}' | cut -d. -f 10 | sort -n | 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=`cat samba.schema | grep -i objectclass.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | \
+ awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1`
+
(( nextoc += 1 ))
echo "objectclass ( 1.3.6.1.4.1.7165.2.2.$nextoc NAME ...."