From 5fa5f718d2ce60017ae36954551ae291ae07f41b Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Fri, 3 May 2024 10:17:23 +0400 Subject: [PATCH] utiliser stdmessenger --- nur_src/ldap/LdapSearch.php | 4 ++-- nur_src/ldap/app/LdapDeleteApp.php | 6 +++--- nur_src/ldap/ldap_server.php | 4 ++-- nur_src/ldap/schemas/LseAttribute.php | 2 +- nur_src/ldap/schemas/LseObjectClass.php | 2 +- nur_src/ldap/schemas/LseSyntax.php | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/nur_src/ldap/LdapSearch.php b/nur_src/ldap/LdapSearch.php index 550cfaa..82e4047 100644 --- a/nur_src/ldap/LdapSearch.php +++ b/nur_src/ldap/LdapSearch.php @@ -10,7 +10,7 @@ use nur\b\ValueException; use nur\data\types\md_utils; use nur\data\types\Metadata; use nur\iter; -use nur\log; +use nur\sery\output\msg; class LdapSearch extends Parametrable implements IteratorAggregate { use Tparametrable; @@ -148,7 +148,7 @@ class LdapSearch extends Parametrable implements IteratorAggregate { $this->ppDeref, $this->ppControls, ]); - log::debug("Searching searchbase=$args[1] filter=$args[2]"); + msg::debug("Searching searchbase=$args[1] filter=$args[2]"); $scope = $this->scope; if ($scope == self::SCOPE_SUBTREE) $rr = @ldap_search(...$args); diff --git a/nur_src/ldap/app/LdapDeleteApp.php b/nur_src/ldap/app/LdapDeleteApp.php index 8bbab0a..634a1a5 100644 --- a/nur_src/ldap/app/LdapDeleteApp.php +++ b/nur_src/ldap/app/LdapDeleteApp.php @@ -3,7 +3,7 @@ namespace nur\ldap\app; use nur\ldap\LdapSearch; use nur\ldap\LdapWalker; -use nur\log; +use nur\sery\output\msg; class LdapDeleteApp extends LdapApplication { const ARGS = [ @@ -27,9 +27,9 @@ class LdapDeleteApp extends LdapApplication { /** @var LdapWalker $lo */ $lo = $conn->search(null, $params); while ($lo->next($first)) { - log::action("Suppression $lo[dn]"); + msg::action("Suppression $lo[dn]"); $lo->delete(); - log::asuccess(); + msg::asuccess(); } } } diff --git a/nur_src/ldap/ldap_server.php b/nur_src/ldap/ldap_server.php index 27c0cc4..b9fab3d 100644 --- a/nur_src/ldap/ldap_server.php +++ b/nur_src/ldap/ldap_server.php @@ -4,8 +4,8 @@ namespace nur\ldap; use nur\A; use nur\b\ValueException; use nur\config; -use nur\log; use nur\path; +use nur\sery\output\msg; use nur\SL; abstract class ldap_server { @@ -52,7 +52,7 @@ abstract class ldap_server { static function conn(?array $config=null, ?string $profile=null): LdapConn { if ($profile === null) $profile = self::get_profile(); $name = self::name(); - log::debug("Profil $name: $profile"); + msg::debug("Profil $name: $profile"); $configFile = static::fix_path(ldap_config::get_file($name, $profile)); if (!file_exists($configFile)) { $configname = path::filename($configFile); diff --git a/nur_src/ldap/schemas/LseAttribute.php b/nur_src/ldap/schemas/LseAttribute.php index 13c15da..30fff21 100644 --- a/nur_src/ldap/schemas/LseAttribute.php +++ b/nur_src/ldap/schemas/LseAttribute.php @@ -1,7 +1,7 @@