Java exception with commadmin create user command

Hi,
I should very much like to get Messaging Server running in conjunction with Identity Server.
Ideally I would like Identity Server to be accessible via an Application Server instance.
So far I have succeeded in installing Directory Server, Administration Server, Application Server and Identity Server.
I have two problems:
When I executed commadmin to create a mail user I used this command:
/opt/SUNWcomm/bin/commadmin user create -v -D amAdmin -n acc.graddelt.com
-w <pw> -F test -l test -L test -W <pw> -S mail -H trabant.acc.graddelt.com
I then get a Java error:
[17/Feb/2004:15:16:35] SEVERE (14419): StandardWrapperValve[commLDAPAuth]: Servlet.service() for se
rvlet commLDAPAuth threw exception
java.security.AccessControlException: access denied (java.util.PropertyPermission user.language wri
te)
on the Application Server
Second problem:
I've setup the HTTP server component of Messenger Server to listen on port 81, but I only get
the Application Server default page instead of the Messenger Server Web Interface.
I think both problems may be caused by the way I installed these JES components, so
I enclose the procedure here:
I chose a Base DN of dc=acc.graddelt.com without a sub organisation.
I chose the Custom Install option for each application
) Installed Application Server, Directory Server and Admin Server. Did not install sample data.
) Started Application Admin Server
/var/opt/SUNWappserver7/domains/domain1/admin-server/bin/startserv
) Then created a new instance called `server1'
) Installed Identity Server in the newly created Application Server instance server1
) I verified Identity server was accessible and working correctly
) Installed Messaging Server & Calendar Server
) Executed 'perl comm_dssetup.pl'
Server Root : /var/opt/mps/serverroot
Server Instance : slapd-trabant
Users/Groups Directory : Yes
Update Schema : yes
Schema Type : 2
DC Root : dc=acc.graddelt.com
User/Group Root : dc=acc.graddelt.com
Add New Indexes : yes
Directory Manager DN : cn=Directory Manager
) Setup additional Indexes (http://docs.sun.com/source/816-6874/std-comp-inst.html#wp28563)
& added Self Ref. Plug-in to LDAP server then restarted LDAP server and Application server.
) Executed /opt/SUNWcomm/sbin/config-iscli
Chose to put users in Base DN as this is simple test system
) Updated App server as per http://docs.sun.com/source/817-4216-10/config.html
./asadmin deploy user admin password <pw> --instance server1 \
host trabant port 4848 name commcli contextroot commcli \
/opt/SUNWcomm/lib/jars/commcli-server.war
) Restarted Application Server
) Executed /opt/SUNWmsgvr/sbin/configure
) Added Mail service from /opt/SUNWam/samples/integration
/opt/SUNWam/bin/amadmin \
--runasdn uid=admin,ou=People,dc=acc.graddelt.com \
password <pw> schema sampleMailServerService.xml
) Created a User with uid test and Registered the simple Mail service in Identity Manager.
) Setup a user account in Messaging Server
/opt/SUNWcomm/bin/commadmin user create -v -D admin -F test -n acc.graddelt.com -l test -w <pw>
-W <pw> -L test -S mail -H trabant.acc.graddelt.com
I'm running JES 03Q4 on a Solaris 8 420R. The system is fully patched and up to date
Many thanks
Shaun

Two questions:
[17/Feb/2004:15:16:35] SEVERE (14419): StandardWrapperValve[commLDAPAuth]: Servlet.service() for se
rvlet commLDAPAuth threw exception
java.security.AccessControlException: access denied (java.util.PropertyPermission user.language wri
te)
on the Application Server
This looks like an acl problem. A default installation should not have this, so, we're looking at what might have gone wrong with your installation, or what was changed. Let's start with looking at file permissions and such. I believe JES installer defaults to installing the container for Identity and Identity as root. Did you change this? If so, you need to check file ownership and permissions.
Second problem:
I've setup the HTTP server component of Messenger Server to listen on port 81, but I only get
the Application Server default page instead of the Messenger Server Web Interface.
This means that you installed App Server to also respond on port 81. You cannot have two different products listening to ther same port. You will need to change one or the other.

Similar Messages

  • I have a problem with ALV Grid User Command?

    Hi Experts,
    I have a problem with ALV GRID User Command.
    I am calling TCODE IW33 (Order Display) from the ALV output at first time by selecting an order. But, User command is calling IW33 Initial screen with blank value of order. Even I checked in debugging the value what I selected is passing properly, but once that screen (IW33 Initial) displays, value doesn't appear. Then, Manually, I  created another session and gone to TCODE IW33 and displayed an order. After that I came out from that order. Then again run my ALV program and selected another order, now order is displaying, but not what I selected current order instead of displaying previous order what I just displayed manually. If I selected any other order, system will display the same order what I dislayed manually.
    Here is my code.
    FORM user_command_alv  USING u_ucomm TYPE sy-ucomm
                           us_self_field TYPE slis_selfield.
    CASE u_ucomm.
    WHEN '&IC1'.
    READ TABLE it_final INDEX us_self_field-tabindex INTO wa_final.
            WHEN 'ORDER'.
              IF NOT wa_final-order IS INITIAL.
                SET PARAMETER ID 'COK' FIELD wa_final-order.
                CALL TRANSACTION 'IW33' AND SKIP FIRST SCREEN.
              ENDIF.
    endform.
    PARAMETER ID 'COK'  also the standard one.
    Could you please help me out, Where I did wrong?
    If I select any order, that order only should display.
    Thanks in advance.
    Regards,
    Sarayu.
    Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 2:33 PM

    hi,
    Please check it once the Paramater ID is 'ANR' for IW33 order number.
    Hope this may help.
    Regards,
    Sravanthi

  • Commadmin create user inputfile wrong character set

    hi!
    im adding several users with non-ascii characters through inputfile (-i) with commadmin:
    l recepciosavinyeta
    F Recepci�
    L Sa Vinyeta
    W passtest
    d example.com
    S mail,cal
    E [email protected]
    [...]when i go to DA i can see Recepci� is not displayed correctly, so i presume is something related to character set.
    these are my locales:
    # locale
    LANG=es_ES.ISO8859-15
    LC_CTYPE=es_ES.ISO8859-1
    LC_NUMERIC=es_ES.ISO8859-15
    LC_TIME="es_ES.ISO8859-15"
    LC_COLLATE=es_ES.ISO8859-15
    LC_MONETARY=es_ES.ISO8859-15
    LC_MESSAGES=es
    LC_ALL=
    ./imsimta version
    Sun Java(tm) System Messaging Server 6.3-0.15 (built Feb  9 2007)
    libimta.so 6.3-0.15 (built 19:17:24, Feb  9 2007)
    SunOS silmail 5.10 Generic_120012-14 i86pc i386 i86pcthanks in advance.

    Hi,
    I couldn't find any record of somebody attempting to use non-ascii characters in the commadmin command, so I cannot offer any steps to assist in this. I suggest you log a support case.
    Regards,
    Shane.

  • Java Exception with SDO_UTIL.FROM_WKTGEOMETRY

    Anyone have any idea why the following is not working?
    INSERT INTO "OBJECT_EVENT" ("title", GEOMETRY) VALUES ( 'testPoly', SDO_UTIL.FROM_WKTGEOMETRY('POLYGON((-76.57418668270113 38.91891450597657 0, -76.57484114170074 38.91758725401061 0, -76.57661139965057 38.91881851059802 0, -76.57418668270113 38.91891450597657 0))'));This is producing the following error:
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.RuntimeException: -2
    ORA-06512: at "MDSYS.SDO_UTIL", line 137I'm a n00b with Oracle Spatial and there's so much documentation I can't find anything that references this issue. Which usually means I have something all wrong.
    Thoughts? Help?
    Thanks so much!

    Nick,
    So does that mean the JTS download at spatialdbadvisor.com is the latest codebase you've contributed? i.e. Do I have your latest work? If not I'll redownload once you update. If so, I'll play around with the .sh script and see if I can't get it working. The current download is still called JTS. At some point the name will change, probably to something like JSC4O (Java Spatial Companion 4 Oracle)... I may drop the "Companion" but I don't want people thinking I am trying to replace SDO_GEOMETRY
    like ESRI does or Jaspa aspires to. All I want to do is make the SDO_GEOMETRY experience for users a little easier in those areas where gaps appear between releases that users need plugged but the Oracle release/license cycle isn't flexible enough.
    I often update the JTS library as I find bugs or add new functionality. For example, I release a version a few days ago which contained:
       * ST_LineMerger
       * Takes set of linestring geometries and constructs a collection of linear components
       * that form maximal-length linestrings. The linear components are returned as a MultiLineString.
       * @param p_resultSet  : RefCur_T : Ref Cursor of Linestring Geometries 
       * @param p_precision  : int   : Number of decimal places of precision when comparing ordinates.
       * @return STRUCT      : Collection of linear sdo_geometries as MultiLineString.
       * @throws SQLException
       * @history Simon Greener, January 2012, Original Coding
       * @copyright  : Licensed under a Creative Commons Attribution-Share Alike 2.5 Australia License.
       *               http://creativecommons.org/licenses/by-sa/2.5/au/
      Function ST_LineMerger(p_resultSet in &&defaultSchema..JTS.refcur_t,
                             p_precision in number)
        Return mdsys.sdo_geometry
               Deterministic;Also, I am improving/tuning my XSV exporter right now so those changes will go up.
    As each goes up I modify this page: http://www.spatialdbadvisor.com/source_code/223/geoprocessing-package-documentation
    I believe the latest version has some modifications to the install.sh script after your comments. Perhaps you might want to look at that version before starting?
    regards
    Simon

  • Unable to SSH in to ASA with new created user

    Hello. I have an ASA 5510 firewall running an older verison of code. I"m trying to create a new user account to log in but I can't seem to SSH with this account. ASDM works fine but SSH fails. I thought the command would have been: 
    username newuser password usertest123 privilege 15
    But I can't SSH with this. What am I missing?
    Cisco Adaptive Security Appliance Software Version 7.2(4)
    Device Manager Version 5.2(4)

    I think this may be what's missing. Here's the error I received though when trying to add this to the configuration. I'm assuming I need to create this group?
    FIrewall-ASA(config)# aaa authentication ssh console local
    ERROR: aaa-server group local does not exist
    Usage: [no] aaa mac-exempt match <mac-list-id>
            [no] aaa authentication secure-http-client
            [no] aaa authentication listener http|https <if_name> [port <port>] [redirect]
            [no] aaa authentication|authorization|accounting include|exclude <svc>
                    <if_name> <l_ip> <l_mask> [<f_ip> <f_mask>] <server_tag>
            [no] aaa authentication serial|telnet|ssh|http|enable console
                    <server_tag> [LOCAL]
            [no] aaa accounting telnet|ssh|serial|enable console <server_tag>
            [no] aaa authentication|authorization|accounting match
                    <access_list_name> <if_name> <server_tag>
            [no] aaa authorization command {LOCAL | <tacacs_server_tag> [LOCAL]}
            [no] aaa accounting command {privilege <level>} <tacacs_server_tag>
            [no] aaa proxy-limit <proxy limit> | disable
            [no] aaa local authentication attempts max-fail <fail-attempts>
            clear configure aaa
            clear aaa local user {fail-attempts|lockout} {all | username <uname>}}
            show running-config [all] aaa [authentication|authorization|accounting
                    |max-exempt|proxy-limit]
            show aaa local user [lockout]

  • Mb5b time_out with newly created user

    Dear expert,
    I have created new sap id and provided requested authorization however if we run mb5b it gets time_out even for one day but if we run it using any old SAP id it works fine.

    take a performance trace in ST05 to see where the transaction spends all the time.
    take an authorization trace in ST01 to see if the authorization affects the transaction.
    make sure you execute with the very same selection parameters (except for the display variant, which may be user specific), the old user might have some defaults from user parameters which might not be available for the new user, compare the user parameters.
    MB5B is in general slow and must not be used for mass data (see 1005901 - MB5B: Performance problems)

  • Can't log in with newly created user on new install of Arch [solved]

    Hi all,
    Yesterday I installed Arch anew (because I had a hardware failure that took out my hard drive), but now I'm encountering an issue with logging in.
    After following the installation guide, and creating a new user, I find that I'm unable to log in as said user.
    It complains about wrong password, but it's the exact same password that I entered mere moments before that, when creating the new user.
    I can "log in" as said user by first logging in as root (which does work) and doing "su - <username>" (though then it doesn't ask for a password).
    Can someone point me in the right direction to fix this problem?
    Last edited by madjo (2013-07-03 20:19:43)

    I think cfr meant to say you shouldn't "fix" bash path - as some users did. Unfortunately there's a bit confusion wrt which paths should be used - see this ML thread.
    Some say we should keep /bin/foo for compatibility, others say that we should boldly move to /usr/bin/foo.

  • Extending java.util.EventObject to create user defined Events

    Dear All,
    Can someone point me to a decent tutorial/article/example that explains how and when to extend java.util.EventObject class to create my own EventObject and Event mechanism.
    Please not the waterEvent, pipe and source example from the java beans tutorial :))
    regards
    Rupinder

    ??

  • Null pointer exception with ImageToBuffer.create(........)

    I'm trying to draw two lines on received video frames so I implemented an effect that takes a frame then :
    frame = Buffer -> Image -> BufferedImage -> draw lines -> Image -> Buffer ( Problem ).
    the problem is in converting the Image back to Buffer in order to assign it as the Effect outcome buffer ( which will be showed ), the process function code is as followed :
    BufferToImage bti;
    ImageToBuffer itb;
    public int process(Buffer inBuffer, Buffer outBuffer)
    Object data = inBuffer.getData();
    if (bti == null)
    bti = new BufferToImage( (VideoFormat) inBuffer.getFormat());
    Image image = bti.createImage(inBuffer);
    if (image != null)
    Graphics2D g = bImage.createGraphics();
    g.drawImage(image, null, null);
    g.drawLine(160, 0, 160, 240);
    g.drawLine(0, 120, 320, 120);
    if (itb == null)
    itb = new ImageToBuffer();
    Image i = Toolkit.getDefaultToolkit().createImage(bImage.getSource());
    if (b == null)
    b = new Buffer();
    b = itb.createBuffer(i, 15); ///causes null pointer exception
    if (b != null)
    inBuffer.setData(outBuffer.getData());
    outBuffer.setData(b.getData());
    else
    inBuffer.setData(outBuffer.getData());
    outBuffer.setData(data);
    // Copy the input attributes to the output
    outBuffer.setFormat(inBuffer.getFormat());
    outBuffer.setLength(inBuffer.getLength());
    outBuffer.setOffset(inBuffer.getOffset());
    return BUFFER_PROCESSED_OK;
    Any solutions for the problem.
    Thank you for replying in advance..

    thanks Timo
    through this URL i get possible deletion methods...
    pls give more Information about the concept of removeRowWithKey, setCurrentRowWithKey, setCurrentRowWithKeyValue operation.... Just For Knowledge....
    Edited by: NZL on Mar 2, 2012 9:37 AM
    Edited by: NZL on Mar 2, 2012 9:42 AM

  • Create User With JMX

    Attempting to invoke the createUser operation (using Version 10.0) is resulting in:
    Runtime Exception while calling invoke. Invoking management operations on Realm, UserLockoutManager and Security Provider MBeans via Edit MBeanServer is illegal.
    I can see nothing in the docs that says this opertaion is not permitted. Is there an example somewhere of code that successfully does this in case I'm missing something?

    Hi Gabi,
    oops, sent that previous post by accident before I was done... <grin>
    Here is how you want to do it programmatically
    BasicRealm realm = Security.getRealm(); //weblogic.sercurity.acl
    ListableRealm realmDump = null;
    //cast the realmDump to ListableRealm so we can call methods like newUser, newGroup, etc.
    try {
    realmDump = (ListableRealm)realm;
    } catch (Throwable t) {
    System.out.println("Could not cast realm to realmdump -- the realmClass is not a
    ListableRealm");
    out.print("Could not cast realm to realmdump -- the realmClass is not a
    ListableRealm");
    //now you can call any ListableRealm method off of realmDump
    //for example....
    Enumeration enum = realmDump.getGroups();
    That should do it. You could put that code in a servlet or JSP and it will work just fine.
    I'm not sure exactly what packages you need to import, other than the fact that
    weblogic.security.* will be a must
    Cheers,
    Joe Jerry
    Gabi wrote:
    Hi,
    In a production environment, where there is a need to set the environment in a
    transparent way (to the user), is it possible to create User/Group/ACL programmatically?
    that is, for instance, using the management extension (JMX) to get a security
    MBean with a "create user" operation.
    cheers,
    Gabi,

  • Problems with the imadmin purge user command

    I am using iMS 5.2 hot fix 1.05, iDA1.2sp1 and iDS 5.1
    When I try to use the imadmin purge user command I get the following errors:
    [email protected]: purging user
    [email protected]: purge user failed
    Failed connection refused.
    If I don't use the -g 0 option then it reports success, but the user account is still in LDAP...
    I found a reference to the imadmin user purge command not working when you have iDA 1.2patch1 and iMS 5.1 patch 1 unless you make a change to your resource.properties file but i have tried the file both way and I get the same error with the purge user command.
    I can use the imadmin delete user or imadmin modify user without any problem. I am just having trouble with the imadmin purge user command.
    Any ideas?

    This problem is documented in bug id 4671472. I have attempted the recommeded fix, but the problem persists. If anyone else has been having a similar problem and has any solution let me know. Thanks.
    Peter

  • Problem while creating user

    Hi
    We have installed a SAP Netweaver 2004s system on AIX box.
    We have installed the J2EE + ABAP Engine.
    While creating the user from the portal we get the following error:
    #1.5#1E656000400200710000008E000890AC00042D27C0FEBD4D#1175548671736#com.sap.security.core.persistence.datasource.imp.R3PersistenceBase#sap.com/tcwddispwda#com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.getPrivateIDPart()#J2EE_ADMIN#25759##punlparidm06.bmc_E60_602784150#J2EE_ADMIN#81b977c0e15f11dbc9551e6560004002#SAPEngine_Application_Thread[impl:3]_15##0#0#Error#1#/System/Security/Usermanagement#Java#An exception was thrown in the UME/ABAP user management connector. Message: .##An exception was thrown in the UME/ABAP user management connector. Message: .
    [EXCEPTION]
    #2#Cannot create user QM?MVZIMONY in ABAP backend system. Reason: The UME/ABAP adapter has recognized that the communication user is only assigned to the read-only role SAP_BC_JSF_COMMUNICATION_RO (or no role at all) in the backend system. Therefore UME was set to read-only mode for users from the backend system. See SAP Note 908911 for further information.#com.sap.security.core.persistence.datasource.PersistenceException: Cannot create user QM?MVZIMONY in ABAP backend system. Reason: The UME/ABAP adapter has recognized that the communication user is only assigned to the read-only role SAP_BC_JSF_COMMUNICATION_RO (or no role at all) in the backend system. Therefore UME was set to read-only mode for users from the backend system. See SAP Note 908911 for further information.
            at com.sap.security.core.persistence.datasource.imp.R3Persistence.getPrivateIDPart(R3Persistence.java:2521)
            at com.sap.security.core.persistence.datasource.imp.DataSourceBaseImplementation.bindNewPrincipalDatabag(DataSourceBaseImplementation.java:340)
            at com.sap.security.core.persistence.datasource.imp.R3Persistence$Transaction.bindNewPrincipalDatabag(R3Persistence.java:8727)
            at com.sap.security.core.persistence.imp.PrincipalDatabagFactoryInstance.bindNewPrincipalDatabag(PrincipalDatabagFactoryInstance.java:4640)
            at com.sap.security.core.persistence.imp.PrincipalDatabag.getIDParts(PrincipalDatabag.java:1034)
    What can be the problem here.
    AM i missing any step.
    Best Regards
    Manoj

    Hi manoj,
    If you want to enable write access from the UME to the ABAP backend
    system, assign the backend role SAP_BC_JSF_COMMUNICATION to the UME
    communication user (you do not need to remove other roles that are assigned to the user).
    Ensure that the profile for the role is generated and assigned to the user. Check in transaction SU01 that the generated profile for the role  SAP_BC_JSF_COMMUNICATION appears in the section "Profiles" for the the
    communication user.
    Also Rewarding points is the best way to help some one who helps you!!!
    Mantosh

  • Create user statement on Procedures

    Hi,
    How to use create user command in oracle procedure.
    Whenever I am using the statemet create user <username> identified by <password> it gives me the error. But whenever I am removing this statement the procedure is compiling successfully.
    Is there anyway to use create user statement inside procedure?
    Regards,
    Indraneel

    You have to use dynamic sql :
    SQL> begin
      2  execute immediate ('create user test_user identified by test_user');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL>Of course the command should be completed with other information (e.g. default tablespace, temporary tablespace, and so on).
    Paul

  • DB hangs creating user but create table is fine (strange!)

    Hi guys,
    We're not far away from bouncing the system due to this issue. I created a new tablespace on a 11.2.0.2.0 database then tried to create a user. The create user hangs. I previously did the exact same steps on 2 other databases on a separate server...no issues.
    The alert log shows no issues. v$views show no locking. shared cache has no free blocks. Some stats:  v$sga_dynamic_components
    COMPONENT               CURRENT_SIZE   MIN_SIZE USER_SPECIFIED_SIZE TYPE                                    MODE
    DEFAULT buffer cache                 376        368              0                      SHRINK                                  DEFERRED
    shared pool                                592        488              0                       GROW                                    DEFERREDThis is trace output. It doesnt like this view (also keeps hanging):
    *** 2013-01-14 14:19:33.613
    WAIT #46995495479440: nam='SQL*Net message from client' ela= 4377708633 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1358173173613579
    CLOSE #46995495479440:c=0,e=20,dep=0,type=0,tim=1358173173639109
    =====================
    PARSING IN CURSOR #46995495478432 len=21 dep=0 uid=0 oct=3 lid=0 tim=1358173173641688 hv=963472512 ad='66d98c80' sqlid='9sydnn4wquv40'
    select * from x$kglpn
    END OF STMT
    PARSE #46995495478432:c=0,e=2501,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,plh=1193925445,tim=1358173173641683
    EXEC #46995495478432:c=0,e=54,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=1193925445,tim=1358173173641940
    WAIT #46995495478432: nam='SQL*Net message to client' ela= 5 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1358173173641994with tail -f it doesn't add any new lines until I CTRL+C the operation. and with the create user it cuts off part of code line. Anyone had a similar issue?
    Mike

    Many thanks for the workaround info, has been an excessive rebootfull adventure trying to set up Mnt. Lion  with NIS authentication. I can assure you it's not your NIS server platform, have the exact same problem and log entries here using a PPC mini/Leopard OS X server as a NIS server, which works fine with 10.4-10.7 Macs, Linux, Solaris and HP-UX clients.... just not 10.8.1 via the console, hangs it completely.
    I'll be getting a new mini/Mnt. Lion server this week, and will set up NIS there and  - assuming the problem is still there - will log a call with Apple, my PPC Mini support ran out a *long* time ago....
    Cheers
    Geo

  • Create Users with Mail enabled in dscl or command line

    I have figured out how to use the dscl to add a user.
    example:
    $ sudo dscl . create /users/rothman uid 701
    $ sudo dscl . create /users/rothman gid 20
    $ sudo dscl . create /users/rothman realname "Ernest Rothman"
    $ sudo dscl . create /users/rothman passwd \*
    I went as far as to launch WorkGroup manager to enable Mail.
    The following gave me the key values:
    dscl . read /Users/test MailAttribute > mailsettings.txt
    When I try to replace from the txt file. WorkGroup Manager than believes the Mail is not enabled.
    How do I use dscl or a terminal command to enable the user with mail server and to use IMAP Only?
    I do not want to always have to remotely connect to launch Workgroup Manager to enable mail for new users.
    I hope you can help for I am new dscl or even NetInfo command line tools.
    I have tried these, but I guess it does't like how it is being restored into that property.
    dscl . create /Users/test MailAttribute `< mailsettings.txt`
    <?xml version="1.0" encoding="UTF-8"?>
    <dict>
    <key>kAPOPRequired</key>
    <string>APOPNotRequired</string>
    <key>kAltMailStoreLoc</key>
    <string></string>
    <key>kAttributeVersion</key>
    <string>Apple Mail 1.0</string>
    <key>kAutoForwardValue</key>
    <string></string>
    <key>kIMAPLoginState</key>
    <string>IMAPAllowed</string>
    <key>kMailAccountLocation</key>
    <string>192.168.181.132</string>
    <key>kMailAccountState</key>
    <string>Enabled</string>
    <key>kPOP3LoginState</key>
    <string>POP3Deny</string>
    <key>kUserDiskQuota</key>
    <string>0</string>
    </dict>
    I have also tried appending by doing something like this.
    dscl . create /Users/test MailAttribute '<?xml version="1.0" encoding="UTF-8"?>’
    dscl . append /Users/test MailAttribute ‘<dict>’
    dscl . append /Users/test MailAttribute ‘<key>kAPOPRequired</key>’
    dscl . append /Users/test MailAttribute ‘<string>APOPNotRequired</string>’
    dscl . append /Users/test MailAttribute ‘<key>kAltMailStoreLoc</key>’
    dscl . append /Users/test MailAttribute ‘<string></string>’
    dscl . append /Users/test MailAttribute ‘<key>kAttributeVersion</key>’
    dscl . append /Users/test MailAttribute ‘<string>Apple Mail 1.0</string>’
    dscl . append /Users/test MailAttribute ‘<key>kAutoForwardValue</key>’
    dscl . append /Users/test MailAttribute ‘<string></string>’
    dscl . append /Users/test MailAttribute ‘<key>kIMAPLoginState</key>’
    dscl . append /Users/test MailAttribute ‘<string>IMAPAllowed</string>’
    dscl . append /Users/test MailAttribute ‘<key>kMailAccountLocation</key>’
    dscl . append /Users/test MailAttribute ‘<string>192.168.181.132</string>’
    dscl . append /Users/test MailAttribute ‘<key>kMailAccountState</key>’
    dscl . append /Users/test MailAttribute ‘<string>Enabled</string>’
    dscl . append /Users/test MailAttribute ‘<key>kPOP3LoginState</key>’
    dscl . append /Users/test MailAttribute ‘<string>POP3Deny</string>’
    dscl . append /Users/test MailAttribute ‘<key>kUserDiskQuota</key>’
    dscl . append /Users/test MailAttribute ‘<string>0</string>’
    dscl . append /Users/test MailAttribute ‘</dict>’

    Got it to take as a single statement.
    dscl . create /users/test applemail "<?xml version='1.0' encoding='UTF-8'?> <dict> <key>kAPOPRequired</key> <string>APOPNotRequired</string> <key>kAltMailStoreLoc</key> <string></string> <key>kAttributeVersion</key> <string>Apple Mail 1.0</string> <key>kAutoForwardValue</key> <string></string> <key>kIMAPLoginState</key> <string>IMAPAllowed</string> <key>kMailAccountLocation</key> <string>192.168.181.132</string> <key>kMailAccountState</key> <string>Enabled</string> <key>kPOP3LoginState</key> <string>POP3Deny</string> <key>kUserDiskQuota</key> <string>0</string> </dict>"
    Doing the above showed in WorkGroup manager and I tested and the user received a email, so now I can automate adding users without needing the GUI. *Just to note you still have to setup mail services and your virtual, aliases files for postfix. This is just so the user is opened up to be allowed to receive email in the first place.
    I still could not seem to pipe a file into dscl command even though the file was a single line of text. I had planned to embed this in a single command so no big deal.

Maybe you are looking for

  • In iPhone 4 the camera shutter doesn't open for a minute or more

    Have an iPhone for over 3 years and this is new. Cold start doesn't correct Franklin

  • How can I delete all email in mail app?

    Now I have 10,000 mails in mail app that I want to delete.  I try to use this method "Edit, Mark all as read, Edit, select first message, hold down Move, deselect message, unpress Move" but no luck.  All mail will return to inbox after a second.  PS:

  • Schedule Manager execution

    Hi, I am entering task OB52 and other month end tasks and executing the SCMA but the status shown against the first task i.e. OB52 is "?" I am not getting solution as to why the status is showing question mark Kindly help Thanking You, Parin

  • Plz help me in this code

    import java.util.Date; import java.net.*; public class DateTest{   public static void main(String arr[]){                       try{                               URL url = new URL("http://www.google.com");               HttpURLConnection url1 =  (Ht

  • Create a business model when we have only one source table

    Hi, How to create a business model when we have only one source table in Physical layer Regards Swathi