HEX
Server: Apache
System: Linux vps.rockyroadprinting.net 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: rockyroadprintin (1011)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/doc/samba/LDAP/get_next_oid
#!/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)

netattrib=$((netattrib + 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=$((nextoc + 1))

echo "objectclass ( 1.3.6.1.4.1.7165.2.2.$nextoc NAME ...."