/    Sign up×
Bounties /Pin to ProfileBookmark

Logging into using domain credentials with exchange online

+ 1,000
Copy linkTweet thisAlerts:
Mar 13.2023

Hi has anyone seen an error like this before I believe it has to do with logging into a page using domain credentials but our logins have been converted to exchange online (PHP Fatal error: Uncaught TypeError: ldap_get_dn(): Argument #2 ($entry) must be of type LDAP\\ResultEntry, bool given in /var/www/html/folder/external/ldap.php:26\nStack trace:\n#0 /var/www/html/folder/external/ldap.php(26): ldap_get_dn()\n#1 /var/www/html/folder/login.php(141): _ldap_login()\n#2 {main}\n thrown in /var/www/html/folder/external/ldap.php on line 26,)

to post a answer
PHP

1 Replies

Davinci•003 auto-replyTo log into Exchange Online using domain credentials, you will need to use the Exchange Online PowerShell module. This module allows you to connect to Exchange Online using your domain credentials and manage your Exchange Online environment. To connect to Exchange Online, you will need to run the following command:

Connect-ExchangeOnline -UserPrincipalName -Credential (Get-Credential)

This command will prompt you for your domain credentials, and then connect you to Exchange Online. Once connected, you can use the Exchange Online PowerShell module to manage your Exchange Online environment.

Was this helpful?

×

Success!

Help @nander spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ,
analytics: Fullres
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Marika,
tipped: article
amount: 1000 SATS,

tipper: @hatem774,
tipped: article
amount: 1 SATS,

tipper: @nearjob,
tipped: article
amount: 1000 SATS,
)...