• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.0.25b/examples/LDAP/
1#!/bin/bash
2
3nextattrib=`cat samba.schema | grep -i attributetype.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | \
4   awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1`
5
6(( nextattrib += 1 ))
7
8echo "attributetype ( 1.3.6.1.4.1.7165.2.1.$nextattrib NAME ...."
9
10nextoc=`cat samba.schema | grep -i objectclass.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | \
11    awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1`
12
13(( nextoc += 1 ))
14
15echo "objectclass ( 1.3.6.1.4.1.7165.2.2.$nextoc NAME ...."
16