<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by René Daniš on Medium]]></title>
        <description><![CDATA[Stories by René Daniš on Medium]]></description>
        <link>https://medium.com/@yxpstsm?source=rss-c25ea94e0146------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PVBCvwVS0XSHy1VYb532lA@2x.jpeg</url>
            <title>Stories by René Daniš on Medium</title>
            <link>https://medium.com/@yxpstsm?source=rss-c25ea94e0146------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 06:06:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yxpstsm/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Reset an LDAP-Locked Brocade X6-4 Director on FOS 8.2.3c]]></title>
            <link>https://medium.com/@yxpstsm/how-to-reset-an-ldap-locked-brocade-x6-4-director-on-fos-8-2-3c-f33d12e75675?source=rss-c25ea94e0146------2</link>
            <guid isPermaLink="false">https://medium.com/p/f33d12e75675</guid>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[fibre-channel]]></category>
            <category><![CDATA[sysadmin]]></category>
            <category><![CDATA[brocade]]></category>
            <category><![CDATA[enterprise-hardware]]></category>
            <dc:creator><![CDATA[René Daniš]]></dc:creator>
            <pubDate>Sat, 16 May 2026 03:05:45 GMT</pubDate>
            <atom:updated>2026-05-16T03:40:52.527Z</atom:updated>
            <content:encoded><![CDATA[<p># ============================================================</p><p>INSTRUCTIONS FOR PASTING INTO MEDIUM</p><ol><li>Delete the current article on Medium completely (or edit it)</li><li>1. Copy each SECTION below one at a time</li><li>1. After pasting each section, apply the formatting shown in [BRACKETS]</li><li>1. For CODE BLOCKS: select the text, then click the &lt;&gt; button in</li><li>. Medium editor (or use keyboard shortcut). Code blocks prevent</li><li>. Medium from auto-correcting dashes, quotes, and spacing.</li></ol><p># ============================================================</p><p>TITLE (apply: Title style / large H1)</p><p>How to Reset an LDAP-Locked Brocade X6–4 Director on FOS 8.2.3c</p><p># ============================================================</p><p>SUBTITLE (apply: Subtitle style)</p><p>The Complete Procedure Including the PAM Trap That Locks Out Console Logins</p><p># ============================================================</p><p>OPENING LINE (apply: italic)</p><p>A field-tested recovery procedure for decommissioned enterprise Fibre Channel directors, written from real refurbishment work in our shop.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>Why this article exists</p><p># ============================================================</p><p>BODY TEXT (paste as normal paragraphs)</p><p>If you have ever sourced a used Brocade X6–4 Director from an enterprise decommissioning batch, you already know the problem: the chassis powers up, the CPX6 boots cleanly, the WWN cards and blades are intact, and then the login prompt asks you for credentials that nobody on this planet still has. The unit was bound to a corporate Active Directory or OpenLDAP domain (in our case, BRZ.local), and every authentication attempt now fails against an LDAP server that no longer exists.</p><p>The official Broadcom recovery path requires either a valid TAC contract or physical access to the original directory infrastructure. Neither option is realistic for a refurbisher, a homelab buyer, or an IT remarketer who just paid for a 5-chassis pallet at auction.</p><p>There is, however, a clean, repeatable way to recover full administrative access to these directors without breaking anything, provided you understand one specific PAM configuration trap that will silently lock you out a second time if you miss it. This article documents the complete procedure as we have used it on multiple Gen6 X6–4 chassis running Fabric OS 8.2.3c.</p><p>Disclaimer: This procedure is intended for hardware you legally own. Always document the original configuration before resetting, and never reuse stored zoning, fabric identities, or licenses on units sold to third parties without proper RON name management (see the warning section at the end).</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>What you are working with</p><p># ============================================================</p><p>BODY TEXT</p><p>The Brocade X6–4 Director is a Gen6 Fibre Channel backbone switch with 4 slots of FC blade capacity in a 9U chassis, dual CPX6 control processors, dual CR32–4 core routing blades, and a 32 Gbps fabric. A fully populated unit typically runs enterprise feature licenses such as Extended Fabric, Trunking, FICON CUP, Fabric Vision, and IO Insight.</p><p>A typical reference inventory for a single X6–4 chassis looks like this:</p><p># ============================================================</p><p>BULLET LIST (paste each line, Medium will detect as list)</p><p>1x CPX6 active control processor (the standby slot is often pulled before decommissioning)</p><p>2x FC32–48 port blades (48x 32G FC ports each)</p><p>2x FC32-X7 extension blades</p><p>2x CR32–4 core routing blades</p><p>2x redundant power supplies</p><p>2x fan assemblies</p><p>2x WWN cards</p><p># ============================================================</p><p>BODY TEXT</p><p>On FOS 8.2.3c, the POD (Ports on Demand) licensing model is not enforced. All 192 ports come pre-licensed regardless of installed POD keys. This is useful to know before you start chasing license files that the previous owner never transferred.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>Stage 1: Interrupting U-Boot</p><p># ============================================================</p><p>BODY TEXT</p><p>Connect a serial console to the active CPX6 management port (RJ-45 serial, 9600 baud, 8N1). Power-cycle the chassis and watch the boot output. Within the first few seconds, U-Boot prints its banner and offers a brief autoboot countdown:</p><p># ============================================================</p><p>CODE BLOCK (select text, click &lt;&gt; button)</p><p>Hit ESC to stop autoboot</p><p># ============================================================</p><p>BODY TEXT</p><p>Press ESC to drop into the U-Boot menu. You will see options for normal boot, recovery boot, and a third option that allows you to modify boot arguments before continuing. Select option 3.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>Stage 2: Booting into single-user mode</p><p># ============================================================</p><p>BODY TEXT</p><p>In the boot argument editor, you need to append an init= directive that tells the kernel to start a shell instead of the normal Fabric OS init sequence. The command is:</p><p># ============================================================</p><p>CODE BLOCK (select text, click &lt;&gt; button)</p><p>setenv bootargs ${bootargs} init=/bin/sh</p><p>boot</p><p># ============================================================</p><p>BODY TEXT</p><p>The kernel will boot normally up to the point of process 1, then drop you directly into a root shell with no authentication required. This is your recovery environment. From here you have full read-write access to the filesystem before any of the FabOS user-mode services start.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>Stage 3: Mounting proc and sysfs</p><p># ============================================================</p><p>BODY TEXT</p><p>Single-user shell on FOS does not auto-mount the virtual filesystems you will need for any meaningful work. Mount them manually:</p><p># ============================================================</p><p>CODE BLOCK (select text, click &lt;&gt; button)</p><p>mount -t proc proc /proc</p><p>mount -t sysfs sysfs /sys</p><p># ============================================================</p><p>BODY TEXT</p><p>Without these, you cannot inspect process state, modify kernel parameters, or perform a clean sysrq reboot at the end.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>Stage 4: Backing up the existing configuration</p><p># ============================================================</p><p>BODY TEXT</p><p>Before you change anything, copy the current authentication and configuration database to a safe location on the same partition. This serves two purposes: it lets you forensically inspect the previous owner’s configuration (LDAP server addresses, domain names, fabric identities), and it gives you a rollback path if you misconfigure something during recovery.</p><p>The relevant files all live under /etc/fabos/:</p><p># ============================================================</p><p>CODE BLOCK (select text, click &lt;&gt; button)</p><p>cd /etc/fabos</p><p>mkdir backup_original</p><p>cp user.db backup_original/</p><p>cp shadow backup_original/</p><p>cp passwd backup_original/</p><p>cp ldap.conf backup_original/</p><p>cp secdef.0.conf backup_original/</p><p>cp auth.* backup_original/</p><p>cp fabos.* backup_original/</p><p>cp zone.* backup_original/</p><p># ============================================================</p><p>BODY TEXT</p><p>These files contain the local user database, the shadow password file, the LDAP client configuration, the security definition, and the zoning and fabric configuration. Take a moment to inspect ldap.conf and secdef.0.conf. You will often find the original corporate domain name, the bind DN, and sometimes useful clues about the previous deployment environment.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>Stage 5: Restoring default authentication</p><p># ============================================================</p><p>BODY TEXT</p><p>Each of the files above has a corresponding .default template shipped with the firmware. To return the unit to factory authentication state (root with the default Brocade password, no LDAP, local-only authentication), copy the defaults over the live files:</p><p># ============================================================</p><p>CODE BLOCK (select text, click &lt;&gt; button)</p><p>cp user.db.default user.db</p><p>cp shadow.default shadow</p><p>cp passwd.default passwd</p><p>cp ldap.conf.default ldap.conf</p><p>cp secdef.0.conf.default secdef.0.conf</p><p># ============================================================</p><p>BODY TEXT</p><p>At this point, the local user database is restored and LDAP is disabled. However, you are not done. If you reboot now, you will land at the login prompt, type the default password, and the login process will freeze immediately after you hit enter. This is the PAM trap that catches almost everyone.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>Stage 6: The PAM fix (the part nobody documents)</p><p># ============================================================</p><p>BODY TEXT</p><p>The reason logins freeze is that the PAM stack under /etc/pam.d/ still references the LDAP authentication module pam_adldap_auth.so. Even though the LDAP client configuration is now empty and disabled, the PAM stack still tries to load that module and consult its (now nonexistent) server. The login process blocks indefinitely waiting for a TCP response that will never come.</p><p>You have to rebuild the four critical PAM service files by hand so that they reference only the local FabOS authentication module and the standard Unix module, nothing else.</p><p>First, back up the current files:</p><p># ============================================================</p><p>CODE BLOCK (select text, click &lt;&gt; button)</p><p>cd /etc/pam.d</p><p>mkdir backup_original</p><p>cp * backup_original/</p><p># ============================================================</p><p>BODY TEXT</p><p>Then replace login, sshd, netlogin, and ttylogin with this minimal content:</p><p># ============================================================</p><p>CODE BLOCK (select text, click &lt;&gt; button)</p><p>IMPORTANT: spaces between columns, NOT dots, NOT tabs</p><p>auth. required. pam_fabos.so</p><p>auth. required. pam_unix.so debug</p><p>account. required. pam_fabos.so</p><p>account. required. pam_unix.so</p><p>password required. pam_fabos.so</p><p>password required. pam_unix.so</p><p>session. required. pam_fabos.so</p><p>session. required. pam_unix.so</p><p># ============================================================</p><p>BODY TEXT</p><p>The critical rule: no active PAM file may contain a reference to pam_adldap_auth.so. Not commented, not as a fallback. Gone. If even one of the four files still has the LDAP module in the active stack, that service (console, SSH, netconsole, or TTY) will hang on first authentication.</p><p>This is the single most important step in the entire procedure, and it is the one that is missing from every community recovery guide I have seen.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>Stage 7: Sync and reboot</p><p># ============================================================</p><p>BODY TEXT</p><p>Flush all writes to disk, then trigger a clean reboot through the kernel’s magic sysrq interface:</p><p># ============================================================</p><p>CODE BLOCK (select text, click &lt;&gt; button)</p><p>sync</p><p>sync</p><p>echo b &gt; /proc/sysrq-trigger</p><p># ============================================================</p><p>BODY TEXT</p><p>Do not use reboot. There is no init system running to process the request. Sysrq-trigger talks directly to the kernel and forces an immediate reboot.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>After the reboot: first login</p><p># ============================================================</p><p>BODY TEXT</p><p>The chassis will come back up through the normal FabOS boot sequence, eventually reaching the standard login prompt. Authenticate as root with the factory default password (consult the FOS 8.2.x administrator guide if you do not have it). You should land at the standard FabOS CLI with full admin privileges.</p><p>From here you can run switchshow, chassisshow, licenseshow, and firmwareshow to inventory the unit’s true state. In our reference Switch #1 (S/N EZB1937N001, WWN 10:00:c4:f5:7c:a9:3c:b4, previously known as P1_SS201 in the BRZ.local domain), the post-reset inventory confirmed all five enterprise feature licenses intact, all 192 ports available, and FOS 8.2.3c running cleanly.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>Critical warning: the RON name trap</p><p># ============================================================</p><p>BODY TEXT</p><p>Before you set up the unit for resale or redeployment, understand one permanent configuration item: the Remote Optical Name (RON).</p><p>The command that sets the RON name writes the chassis identifying name into a non-volatile location that cannot be changed after commit. This is permanent. Once set, it persists across firmware upgrades, factory resets, and chassis swaps of the CPX6.</p><p>If you are refurbishing units for resale, never set your own company name as the RON. If a buyer ever scans the unit during incident response, support escalation, or asset inventory, your company name will appear permanently associated with the hardware regardless of who owns it. Either leave the RON unset (use static IP configuration to bypass any feature that demands a RON name), or set a neutral identifier with full disclosure to the buyer.</p><p>This is not a hypothetical concern. We have seen units come through with the previous owner’s full corporate identity baked into RON, traceable directly to the original deployment. It is the kind of detail that distinguishes a clean refurbishment from an amateur one.</p><p># ============================================================</p><p>SECTION HEADING (apply: H2)</p><p>Closing notes</p><p># ============================================================</p><p>BODY TEXT</p><p>This procedure has been used successfully on multiple X6–4 chassis running FOS 8.2.3c. The same approach works on related Gen6 platforms (X6–8, G620, G630) with minor path differences in the PAM stack, though those are outside the scope of this article.</p><p>If you are working through a similar recovery and run into something the procedure above does not cover, particularly around fabric persistence after RON conflicts, or POD license re-enablement on units where the previous owner explicitly disabled ports, feel free to reach out.</p><p>At CoreIT Systems (servershop.sk) we refurbish and resell enterprise SAN, storage, and networking hardware across the EU, with a focus on Brocade Gen5 and Gen6 directors, NetApp FAS-series controllers, and Cisco Nexus and Catalyst hardware. Most of what we ship comes through procedures very similar to the one above.</p><p># ============================================================</p><p>CLOSING LINE (apply: italic)</p><p>René Daniš is the owner of CoreIT Systems and RDCOMP s.r.o., an EU-based IT remarketer specializing in refurbished enterprise hardware. Based in Slovakia. Inventory available at servershop.sk and via the CoreIT Systems storefront on eBay.</p><p># ============================================================</p><p>TAGS (add in Medium publish settings, max 5)</p><p>Brocade</p><p>Fibre Channel</p><p>Data Center</p><p>Enterprise Hardware</p><p>Sysadmin</p><p># ============================================================</p><p>END OF ARTICLE</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f33d12e75675" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>