Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon API > XML API UPDATE USER

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon API  /

XML API UPDATE USER

[Deus, Javier Meilán]
Javier Meilán …
Newbie
Newbie
Posts: 23
Javier Meilán Deus - 10:28am, Oct 20 2021

I continue with the development of the application and I have encountered a problem.

When you update a user, and we pass a new alias, it can contain any value, email address, a text string, or an alias to an unconfigured domain.

Log:

211020 170158714 I [00299C44] 0x4142005A Operation: UpdateUser
211020 170158714 D [00299C44] 0x41420066 Parameter: Domain: [commcenter.es]
211020 170158715 D [00299C44] 0x41420066 Parameter: Mailbox: [test]
211020 170158715 D [00299C44] 0x41420066 Parameter: Details
211020 170158715 D [00299C44] 0x41420066 Parameter: Details/AdminNotes: [Usuario Actualizado via XML API Contraseña: ]
211020 170158715 D [00299C44] 0x41420066 Parameter: Aliases operation='add'
211020 170158715 D [00299C44] 0x41420066 Parameter: Aliases/Alias: [asd]
211020 170158719 I [00299C44] 0x4142005C Modification: UpdateUser: commcenter.es\test
211020 170158904 D [00299C44] 0x41350001 Alias : asd = test@commcenter.es
211020 170159578 D [00299C44] 0x4142005E Sending 610 byte response to client
211020 170159579 I [00299C44] 0x41420030 Connection terminating

XML API
Show Foto

The biggest problem is that you can create aliases of existing email accounts or distribution lists, and these would conflict

version od Mdaemon
servidor SMTP/POP/IMAP: v21.0.3
  Webmail HTTP server: v21.0.3
  Webmail DLL: v21.0.3
  MDaemon Instant Messenger client: v21.0.2
  Content filter server: v21.0.3
  Content filter DLL: v21.0.3
  Content filter GUI: v21.0.3
  Calendar API (MDCalendar.dll): v21.0.3
  Mailing list API (MDList.dll): v21.0.3
  Original "Flat-File" API (MDUser.dll): v21.0.3
  COM/DCOM API (MDUserCOM.dll): v21.0.3
  LDAP API (MDUserLDAP.dll): v21.0.3
  ODBC/SQL API (MDUserODBC.dll): v21.0.3
  Cluster Service (64bit) for MDaemon Messaging Server (ClstrSvc.dll): 21.0.3.2
  Dynamic Screening (64bit) for MDaemon Messaging Server (DynScrn.dll): 21.0.3.4
  ActiveSync Mgmt Module (64bit) for MDaemon Messaging Server (MDASMgmt.dll): 21.0.3.6
  AutoDiscovery Service (64bit) for MDaemon Messaging Server (MDAutoDiscover.dll): 21.0.3.2
  Message Indexing (64bit) for MDaemon Messaging Server (MdMbSrch.dll): 21.0.3.2
  Management Web Service (64bit) for MDaemon Messaging Server (MDMgmtWS.dll): 21.0.3.3
  MDPGP (mdpgp.dll): 21.0.3
  MDOP (mdop.dll): 1.3.8
  ActiveSync (MDAirSync.dll): v21.0.3.6
  NT/2K/XP utility API (NTUtil.dll): v21.0.3
  DKIM API (LibDKIM.dll): v1.0.21
  AntiSpam server daemon (MDSpamD): v3.4.4
  CalDAV/CardDAV (MDWebDAV.dll): v21.0.3
  XMPP server (WCXMPPServer.exe): v21.0.3
MDaemon AntiVirus:
  AV overall system: v21.0.3
  Fuente del motor de AV: MDaemon Technologies, Ltd
  Última actualización de virus de AV: 2020-08-29 05:05
  Outbreak Protection (MDOP.dll): v1.3.8
MDaemon Connector:
  Plug-in: v7.0.4
Remote Administration Server:
  HTTP server: v21.0.3

Attachments:

sendAPI.PNG (17 KB)

 

captura3.PNG (27 KB)


  (older msg: 2)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Arron Caruth - Oct 21, 2021 7:52 am (#3 Total: 4)  

Guest User  

Photo of Author
Posts: 1
I ran a number of tests and it looks like when a <Group> element is passed, the API is expecting all groups that the account should be a member of to be included.  So if you send the following in a request:

                <GroupMembership>
                    <Group>Test</Group>
                </GroupMembership>
Then the account will be removed from all groups, except Test.  If Test does not exist, then the account will be removed from all groups.

If you have an account that is currently a member of the "Employee" group and you want to add it to the "Test" group you would need to include this in your request:

                <GroupMembership>
                    <Group>Test</Group>
                    <Group>Employee</Group>
                </GroupMembership>

I've submitted a request for clarification to the developers.  In a future version, we'll either change the behavior or improve the help to better describe the functionality as it is currently designed.

--
Arron Caruth
Vice President of Product Development
o: 817-601-3222    e: Arron.Caruth@mdaemon.com

MDaemon Technologies
Simple Secure Email

Visit us on www.mdaemon.com | Facebook | LinkedIn | YouTube
Sent using the MDaemon Email Server

On Thu, 21 Oct 2021 03:29:33 -0500, "lists-md-api@mdaemon.com (Javier Meilán Deus)" <lists-md-api@mdaemon.com> wrote:
Something similar happens when we add a group, which has not been created.

If we add an existing group, it adds it correctly, but if we add one that does not exist, it removes all the groups of the updated user.

Log Group
No exists
211021 101625709 I [00299CD4] 0x41330008 Authenticated: jxxxxxx@commcenter.es
211021 101625709 I [00299CD4] 0x4142005A Operation: UpdateUser
211021 101625709 D [00299CD4] 0x41420066 Parameter: Domain: [commcenter.es]
211021 101625709 D [00299CD4] 0x41420066 Parameter: Mailbox: [test]
211021 101625709 D [00299CD4] 0x41420066 Parameter: Details
211021 101625709 D [00299CD4] 0x41420066 Parameter: Details/AdminNotes: [Usuario Actualizado via XML API Contraseña: none]
211021 101625709 D [00299CD4] 0x41420066 Parameter: GroupMembership operation='add'
211021 101625709 D [00299CD4] 0x41420066 Parameter: GroupMembership/Group: [t_105] this group not exist
211021 101625710 I [00299CD5] 0x41330008 Authenticated: jxxxxxx@commcenter.es
211021 101625710 I [00299CD4] 0x4142005C Modification: UpdateUser: commcenter.es\test
211021 101625710 I [00299CD5] 0x4142005A Operation: GetUserInfo
211021 101625710 D [00299CD5] 0x41420066 Parameter: Domain: [commcenter.es]
211021 101625710 D [00299CD5] 0x41420066 Parameter: Mailbox: [test]
211021 101625710 D [00299CD5] 0x41420066 Parameter: Get
211021 101628237 D [00299CD5] 0x4142005E Sending 6317 byte response to client
211021 101628237 I [00299CD5] 0x41420030 Connection terminating

Log Add correct Group
211021 101540203 I [00299CD0] 0x41330008 Authenticated: jxxxxxxxn@commcenter.es
211021 101540203 I [00299CD0] 0x4142005A Operation: UpdateUser
211021 101540203 D [00299CD0] 0x41420066 Parameter: Domain: [commcenter.es]
211021 101540203 D [00299CD0] 0x41420066 Parameter: Mailbox: [test]
211021 101540203 D [00299CD0] 0x41420066 Parameter: Details
211021 101540203 D [00299CD0] 0x41420066 Parameter: Details/AdminNotes: [Usuario Actualizado via XML API Contraseña: none]
211021 101540203 D [00299CD0] 0x41420066 Parameter: GroupMembership operation='add'
211021 101540203 D [00299CD0] 0x41420066 Parameter: GroupMembership/Group: [105]
211021 101540203 I [00299CCF] 0x41330008 Authenticated: jxxxxxx@commcenter.es
211021 101540204 I [00299CD0] 0x4142005C Modification: UpdateUser: commcenter.es\test
211021 101540204 I [00299CCF] 0x4142005A Operation: GetUserInfo
211021 101540204 D [00299CCF] 0x41420066 Parameter: Domain: [commcenter.es]
211021 101540204 D [00299CCF] 0x41420066 Parameter: Mailbox: [test]
211021 101540204 D [00299CCF] 0x41420066 Parameter: Get
211021 101542129 D [00299CCF] 0x4142005E Sending 6315 byte response to client
211021 101542129 I [00299CCF] 0x41420030 Connection terminating

and de XML send

See foto

Attachment: xmlGroup.PNG



View/reply at XML API UPDATE USER
--MD-API-------------------------------------------------------------
This list is for questions and discussions regarding MDAEMON's API.
To unsubscribe from this mailing list send an email to
md-api-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user 
support and discussion.  MDaemon staff members may participate in the 
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical 
support please use the form here:
http://www.mdaemon.com/support/request_support.asp
---------------------------------------------------------------------

--MD-API-------------------------------------------------------------
This list is for questions and discussions regarding MDAEMON's API.
To unsubscribe from this mailing list send an email to
md-api-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion.  MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/support/request_support.asp
---------------------------------------------------------------------

Javier Meilán Deus - Oct 21, 2021 8:58 am (#4 Total: 4)  

 

Photo of Author
Javier Meilán …
Newbie
Newbie
Posts: 23
It would be nice if we could send only the group we want to add without having to send all the groups to which it belongs, but knowing that this is so, I modify the code, to read the groups and send them back with the new group.

I have also verified that the remove action works the same way.

Thanks.

[Last Editor: Javier Meilán Deus, Oct 21, 2021 9:14 am. Total Edits: 1]



  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.