Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Create exchange mailbox and bind it to new created ad user #879

Open
vbaseghyanupwork opened this issue Jul 5, 2020 · 0 comments
Open

Comments

@vbaseghyanupwork
Copy link

Adldap2 Version: Master
LDAP Type: ActiveDirectory
PHP Version: 7.3
Laravel version: 5.8

Just want to check, if there any updates regarding exchange mailbox creation, since last time I've seen mention about that around 1 or 2 years ago in issues.

I'm creating users like this.

` $user = Adldap::make()->user([
'cn' => 'test_cn',
'samaccountname' => 'test samaaccount',
'Company' => 'company',
'UserPrincipalName' => 'test_cn@domain.local',
'givenname' => 'test',
'StreetAddress' => 'address',
'Department' => 'department',
'telephoneNumber' => 'xxxxxx',
'MailNickname' => 'test@domain.com
]);

    $user->objectclass = [
        'top',
        'person',
        'inetOrgPerson',
    ];

    $user->setPassword('Super-Secret-Password');
    $user->setAttribute('UserAccountControl', 512);
    $user->setAttribute('pwdLastSet',  0);

    $user->save();`

Wondering how I can use this as described here

http://adldap.sourceforge.net/wiki/doku.php?id=documentation_exchange_functions
Not sure how to use this part

$create = $adldap->exchange()->createMailbox('AD.UserName', array('Mailbox Store', 'Storage Group', 'InformationStore', 'MAILSERVER01', 'Servers', 'First Administrative Group', 'Administrative Group', 'Development', 'Microsoft Exchange', 'Services', 'Configuration'), 'AD.UserName@someotherdomain.local', 'AD User Name', TRUE, 'DC=someotherdomain,DC=local' );

Basically I need to create an mailbox and bind it to new created user.

Anyone tried that?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant