summaryrefslogtreecommitdiffstats
path: root/examples/LDAP/get_next_oid
blob: 54af6301f1478a518840ed1fbe1c61ecfaf6ac9f (plain)
1
2
3
4
5
6
7
8
9
10
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 ...."