Examples

In this part, we will provide a few instances.

  1. Make a password and a label for user john@example.com, who will be able to access service EAS (mobile password).

    zextras$ carbonio auth credential add john@example.com password 'easpass' label "Smartphone" service eas
    Credential correctly added
    
    list
       generated 0
       created 1620892109473
       label Smartphone
       id aKcLK
       services EAS
       hash 6Fs6knbW1+fJmWMB1nKoCgLFPy+IGsuZGtmkW0NzV4A=
       enabled true
       algorithm SHA256
    text_data
       auth_method password
       password easpass
       user john@example.com
    

    • generated – if the credential was generated at random or not, 0 indicates true and 1 means false

    • created – the time of creation

    • label – a label that can be used to recall the purpose or user of the credentials.

    • id – the unique ID required to alter or update the credentials. To avoid confusion, it is referred to as password_id in the instructions.

    • services – services to which access is granted

    • hash – the credential that has been hashed

    • enabled – whether or not the credential may be used.

    • algorithm – the hashing algorithm that is employed

    • password – the password that was issued or created at random. As previously stated, the administrator can only view a user’s password on this instance.

    1. Make a password for jane@example.com that will only be used for Web Access (both ClassicUI and Zextras Login Page).
    zextras$ carbonio auth credential add jane@example.com password \
    'SecretPassword!' label "Web access" service WebUI
    

  2. Make a password for alice@example.com that will only be used for IMAP and POP3 downloads (no SMTP).

    zextras$ carbonio auth credential add alice@example.com password \
    'LocalClient' service imap,pop3
    

  3. Make a password for bob@example.com/SMTP_Service_Credential to allow SMTP for an external client.

    zextras$ carbonio auth credential add bob@example.com password \
    'SMTP_Service_Credential' service smtp
    

  4. An crucial argument is qrcode, which is used to generate a new  qrcode, for usage by mobile devices if QR code support is enabled. When used with the  --json  option, it will also display the QR code’s content. Here’s an example:

    zextras$ carbonio auth credential add charles@example.com password \
    'SMTP_Service_Credential' qrcode true service smtp