<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Disabling a User via CLI Instead of iRedAdmin]]></title>
		<link>https://forum.iredmail.org/topic20673-disabling-a-user-via-cli-instead-of-iredadmin.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20673.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Disabling a User via CLI Instead of iRedAdmin.]]></description>
		<lastBuildDate>Sun, 17 Nov 2024 09:28:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Disabling a User via CLI Instead of iRedAdmin]]></title>
			<link>https://forum.iredmail.org/post89897.html#p89897</link>
			<description><![CDATA[<p>Solved! I&#039;ll leave this here in case anyone else needs it.</p><p>sudo ldapmodify -D &quot;cn=vmailadmin,dc=mailsrv,dc=com&quot; -w &quot;your_password&quot; &lt;&lt;EOF<br />dn: mail=user1@mailsrv.com,dc=mailsrv,dc=com<br />changetype: modify<br />replace: accountStatus<br />accountStatus: disabled<br />EOF</p><p>The passwords are in /home/ubuntu/iRedMail-1.3.2/iRedMail.tips<br /><a href="https://forum.iredmail.org/user2.html">ZhangHuangbin</a> <a href="https://forum.iredmail.org/user48863.html">papas</a> Thanks, I really appreciate it</p>]]></description>
			<author><![CDATA[null@example.com (sloxx)]]></author>
			<pubDate>Sun, 17 Nov 2024 09:28:31 +0000</pubDate>
			<guid>https://forum.iredmail.org/post89897.html#p89897</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disabling a User via CLI Instead of iRedAdmin]]></title>
			<link>https://forum.iredmail.org/post89883.html#p89883</link>
			<description><![CDATA[<div class="quotebox"><cite>sloxx wrote:</cite><blockquote><p>got ldap_modify: Insufficient access (50) after running :<br />ldapmodify -D &quot;cn=vmail,dc=mailsrv,dc=com&quot;</p></blockquote></div><p>cn=vmail is a read-only account, please use either &#039;cn=vmailadmin&#039; or &#039;cn=manager&#039; instead.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 15 Nov 2024 03:22:23 +0000</pubDate>
			<guid>https://forum.iredmail.org/post89883.html#p89883</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disabling a User via CLI Instead of iRedAdmin]]></title>
			<link>https://forum.iredmail.org/post89880.html#p89880</link>
			<description><![CDATA[<div class="quotebox"><cite>sloxx wrote:</cite><blockquote><p>the Manager and vmailadmin have write access but the password is hashed</p></blockquote></div><p>In the installation directory there is a file iRedMail.tips which contains all the passwords.</p>]]></description>
			<author><![CDATA[null@example.com (papas)]]></author>
			<pubDate>Thu, 14 Nov 2024 17:34:26 +0000</pubDate>
			<guid>https://forum.iredmail.org/post89880.html#p89880</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disabling a User via CLI Instead of iRedAdmin]]></title>
			<link>https://forum.iredmail.org/post89879.html#p89879</link>
			<description><![CDATA[<p>got ldap_modify: Insufficient access (50) after running :</p><p>ldapmodify -D &quot;cn=vmail,dc=mailsrv,dc=com&quot; -w &quot;your_password&quot; &lt;&lt;EOF<br />dn: mail=user1@mailsrv.com,dc=mailsrv,dc=com<br />changetype: modify<br />replace: accountStatus<br />accountStatus: disabled<br />EOF</p><p>tried with ldif file too<br />the Manager and vmailadmin have write access but the password is hashed<br />Would it be possible to create a new LDAP user with write access without affecting the current installation or is there another way to achieve this?<br />Thanks for your help!</p>]]></description>
			<author><![CDATA[null@example.com (sloxx)]]></author>
			<pubDate>Thu, 14 Nov 2024 12:18:47 +0000</pubDate>
			<guid>https://forum.iredmail.org/post89879.html#p89879</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disabling a User via CLI Instead of iRedAdmin]]></title>
			<link>https://forum.iredmail.org/post89876.html#p89876</link>
			<description><![CDATA[<p>Simply remove ldap attribute/value pair &quot;accountStatus=active&quot; from LDAP user object, or replace value &quot;active&quot; by &quot;disabled&quot;.<br />Use ldapmodify command to modify LDAP data.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 14 Nov 2024 01:21:42 +0000</pubDate>
			<guid>https://forum.iredmail.org/post89876.html#p89876</guid>
		</item>
		<item>
			<title><![CDATA[Disabling a User via CLI Instead of iRedAdmin]]></title>
			<link>https://forum.iredmail.org/post89872.html#p89872</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.3.2 OPENLDAP edition<br />- Deployed with iRedMail Easy or the downloadable installer? downloadable installer<br />- Linux/BSD distribution name and version: Ubuntu 20.04<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP<br />- Web server (Apache or Nginx):Nginx<br />- Manage mail accounts with iRedAdmin-Pro? no<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====<br />Hi, I&#039;d like to know how to disable one of my users from the CLI instead of using iRedAdmin. For example, I know there is a Python command to disable 2FA with sudo /usr/sbin/sogo-tool user-preferences set defaults user1@mailsrv.com SOGoGoogleAuthenticatorEnabled&quot;:0}&#039;.</p><p>I’ve already tried using curl with the postmaster credentials, but that didn’t work. I need a solution for scripting purposes. Could you please guide me on how to achieve this?</p>]]></description>
			<author><![CDATA[null@example.com (sloxx)]]></author>
			<pubDate>Wed, 13 Nov 2024 15:45:56 +0000</pubDate>
			<guid>https://forum.iredmail.org/post89872.html#p89872</guid>
		</item>
	</channel>
</rss>
