1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
samba-mirror/examples/LDAP/get_next_oid
Andreas Schneider 3990c33efe examples: Reformat shell scripts
shfmt -f examples/ | xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Feb 22 16:20:58 UTC 2022 on sn-devel-184
2022-02-22 16:20:58 +00:00

16 lines
474 B
Bash
Executable File

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