File: get_next_oid

package info (click to toggle)
samba 2%3A4.1.11%2Bdfsg-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 102,616 kB
  • sloc: ansic: 1,163,067; xml: 114,289; python: 103,162; perl: 28,109; sh: 12,165; asm: 3,281; cpp: 2,281; yacc: 1,949; ada: 1,681; exp: 1,582; makefile: 1,181; pascal: 1,089; cs: 879; lex: 566; awk: 140; csh: 58; sed: 45
file content (15 lines) | stat: -rwxr-xr-x 483 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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 ...."