1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00
samba-mirror/examples/LDAP/get_next_oid
Gerald Carter 455bc1db41 r1964: more schema fixes syncing between branches
(This used to be commit 49fba32217d9a9a186a28805011bdb567ac968de)
2007-10-10 10:52:25 -05:00

16 lines
483 B
Bash

#!/bin/bash
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. | 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 ...."