nur-sery/nur_tbin/ldap/schema.php

21 lines
466 B
PHP
Raw Normal View History

2024-04-04 22:21:20 +04:00
#!/usr/bin/php
<?php
require __DIR__.'/../../vendor/autoload.php';
use nur\ldap\app\LdapApplication;
use nur\ldap\schemas\LdapSchemaExtractor;
LdapApplication::run(new class extends LdapApplication {
const ARGS = [
"merge" => parent::ARGS,
["-o", "--output", "args" => 1],
];
protected $output;
function main() {
$conn = $this->getConn();
$extractor = new LdapSchemaExtractor($conn->getSchemaInfos());
Txx($extractor->init());
}
});